Why do you make two threads with the same name. Check out the InternetOpenURL and URLDownloadToFile API's.