Using VB6 and Chilkat HTTP
the code is (taken from examples) :
Dim success As Long Dim html As String
' Any string unlocks the component for the 1st 30-days.
success = http.UnlockComponent("Anything for 30-day trial")
If (success <> 1) Then
http.Login = "xxxx" ' tried also http.ProxyLogin
http.Password = "xxxx" ' tried also http.ProxyPassword - no success
http.ProxyDomain = "xxx.xxx.xxx.xxx"
http.ProxyPort = 8080
http.NegotiateAuth = 1
' Send the HTTP GET and return the content in a string.
html = http.QuickGetStr("http://www.google.com/")
' Print the HTML source that was downloaded.
Text1.Text = Text1.Text & html & vbCrLf
Im getting this error :
Error Code: 407 Proxy Authentication Required. The ISA Server requires authorization to fulfill the request. Access to the Web Proxy filter is denied. (12209)
I got real proxy ip/login/pass which works with browser. But not with this example.
I tried it also using winhttp, same result.
wihttpreq.getallresponseheaders give me this :
Via: 1.1 XXXXXXXX
Proxy-Authenticate: Basic realm="xxxxxx.xxx.xxx"
What's wrong ? Please help.
asked Apr 17 '13 at 15:42