In this video I walk through both the xmlHTTPRequest and the WinHTTPRequest and I compare the xmlHTTPRequest vs. WinHTTPRequest. As I mention in the video, Jackie Sztuk and I have a great AutoHotkey webinar on Intro to API calls. I also have several examples on my API page.
I also mention using Fiddler to monitor the browser traffic and grab your cookies / headers.
xmlHTTPRequest vs. WinHTTPRequest tutorial
Here’s the syntax I used for the WinHTTPRequest example
WinHTTPRequest syntax
And here’s the corresponding two XML API calls I demonstrated in the video
xmlHTTPRequest example using Msxml2.XMLHTTP COM object
Here’s the example connecting to the IE page and sending the API request with the xmlHTTPRequest()