Question:
Hi all.
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
MsgBox http.LastErrorText
Exit Sub
End If
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
Text1.Refresh
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: Negotiate
Proxy-Authenticate: Kerberos
Proxy-Authenticate: NTLM
Proxy-Authenticate: Basic realm="xxxxxx.xxx.xxx"
Connection: close
Proxy-Connection: close
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html
Content-Length: 4112
What's wrong ? Please help.