excel vba - VBA Proxy auto-configuration for http requests -


i need build client web api in vba , needs work behind proxy (with authentication). i've been looking @ winhttp.winhttprequest , msxml2.xmlhttp/serverxmlhttp classes. turns out that:

  • xmlhttp automatically detects proxy settings provided through proxy.pac file (good)
  • winhttprequest doesn't (bad)

however, on other hand:

  • xmlhttp automatically follows redirects, , there's no way of disabling behaviour (bad)
  • winhttprequest doesn't (good)

since i'd able have cake , eat it, there way automatic proxy configuration component such winhttprequest doesn't follow redirects blindly?

the vba-web project might pastry eating problem.

https://github.com/vba-tools/vba-web

i guess wish go like:

dim client new webclient client     .baseurl = "https://www.google.com"     .proxyusername = <user>     .proxypassword = <password>     .enableautoproxy = true end  dim request new webrequest request     .method = webmethod.httpget     .format = webformat.plaintext end  dim response webresponse set response = client.execute(request) 

Comments

Popular posts from this blog

java - HTTP Status 500 - An exception occurred processing JSP page /second.jsp at line 15 -

php - Using str_replace to translate a MySQL Table in html -

SQL Server - MyCTE query based on 24 hour period (next day) -