Excel VBA WinHttpRequest saved Credentials -
i wrote following code innerhtml text of website:
public function getinnerhtmlbody(byval url string) htmldocument dim responsedocument new htmldocument dim myrequest new winhttprequest myrequest .settimeouts 5000, 5000, 5000, 5000 .setproxy httprequest_proxysetting_proxy, "<proxy_server_ip>:<port>", "*.domain.com" .open "get", url, false '// authentication proxy server '.setcredentials "<username>", "<password>", credentials_for_proxy .send '// debug msgbox .responsetext, vbinformation, .statustext & " - " & .status responsedocument.body.innerhtml = .responsetext end set getinnerhtmlbody = responsedocument end function
as can see line .setcredentials
commented out. line needed once authenticate proxy server seems login credentials saved, because if exlude row code retrieves html code of given website.
i restartet computer , cleared whole ie cache code still works.
my question
credentials
saved? coockie?is there way httprequest uses ie proxy settings? -> no need of asking username , password.
Comments
Post a Comment