WinHTTP SetCredentials

B

Bryce

H

I am using WinHTTP to hit a server. I need to provide Proxy credentials to navigate through a proxy server, as well as Server credentials to access the server

I have called the SetCredentials method twice, once for the proxy user/pass and once for the server user/pass, but I am always returned with a 407

Dim oHTTP As New WinHttp.WinHttpReques
oHTTP.Open "GET", "http://server/default.asp", Fals
oHTTP.SetProxy 2, "192.168.1.105:8080
oHTTP.SetCredentials "proxy_user", "proxy_password",
oHTTP.SetCredentials "server_user", "server_password, 0
oHTTP.Sen

If I disable the proxy and simply provide the server credentials it works. If I disable the server authentication and provide the proxy credentials it works

It appears that I can't provide both proxy and server credentials in the same HTTP session. HEL

Regard

Bryce
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top