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.

  1. my question credentials saved? coockie?

  2. is there way httprequest uses ie proxy settings? -> no need of asking username , password.


Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -