excel vba - VBA for "HTTP GET" request, through an unknown proxy? -
Just keep it, I'm trying to write some Excel VBA code which is a specific task when a web server is notified "Will succeed
I am thinking of the easiest way to interface with my web server through the "HTTP GET" request.
To accept this fact, I have had some success library "Microsoft WinHTTP Services" However, it does not work through my company's proxy.
I am returning to this problem after a few weeks to return to this problem that people will have to forget about it (!) And every step I have tried to regret, but by memory : I have seen where I can specify my proxy settings while using WinHTTP, but whatever I can not work on is how to read my current proxy settings (i.e. in cases where i '
Due to the reason, this tool is to work for a global company: the lack of creating some types of lookup table for proxy settings used in different parts of the world (and its headache Retaining), I need to read the existing proxy settings or use any other method.
Another suggestion was suggested that the WinSock API was used. Not specifically, with AU fait (unless I can not steal Google and other people). And I'm not getting any examples of using WinSock for HTTP GET requests.
- Recommend how I can read my current proxy settings to feed in WinHTTP, or
- Let me have an alternative method Help on track with, maybe use WinSock
for your help Thank you very much,
Simon
From MSXML2 to
XMLHTTP60 < Trying to use the object / code> V6.0 (or equivalent to the old version) is designed to be a client-side object and for this it should be looking for proxy settings.
Add a reference to "Microsoft XML, v6.0" and then it's as simple:
XMLHTTP60 set xhrRequest = as new xhrRequest = New XMLHTTP60 xhrRequest.Open " GET "," & lt; URL goes here ", False xhrRequest.send
More information on MSDN
Comments
Post a Comment