Quantcast
Channel: Active questions tagged windows - Super User
Viewing all articles
Browse latest Browse all 9128

Proxy settings for HTTP request using libcurl

$
0
0

I am fairly new to HTTP Protocols involving proxies and authentication. I am working on an application that runs on Windows and uses the host network to send/receive HTTP/S requests. It also uses Libcurl to help the transfer.

However, I have a few issues when I have to use a proxy. Since I am on a network, I have a proxy defined for certain URLs with a PAC file. Since Libcurl does not have Javascript support, I use PACParser to parse the PAC file and determine the proxy.

When I use the proxy I get 407 authentication required. I am not sure how to overcome proxy authentication. I tried various available settings with CURL like BASIC / DIGEST / NTLM. None of them seems to work. But if I hardcode the username and password in the request I see the request go through.

How can I avoid hardcoding the username/password and stil ensure that proxy usage will work?


Viewing all articles
Browse latest Browse all 9128

Trending Articles