Downloading a file using InternetOpenUrl in proxy environment (VC++ Wininet Library)
Web Development
1
Posts
1
Posters
0
Views
1
Watching
-
Tried downloading a file on a specific location in a Non-proxy environment using InternetOpenURL() and InternetReadFile() API's. This worked fine. But when i try the same in Proxy Environment it fails. I tried doing HttpQueryInfo() and then checking the status for HTTP_PROXY_AUTH_REQD. This is successful but when i set the username and password for Proxy Authentication and retry, it still gives me status as HTTP_PROXY_AUTH_REQD. If I continue downloading the file then junk characters are downloaded and written to the file. Need help to make InternetOpenURL work in a Proxy Environment. (Please note that Proxy Server Details are not present with my application and i cannot bypass the Proxy Server) Thanks in advance. Ravi.