I'm trying to access a site using HTTPGet() but the site does not seem to like direct requests using this method. When I access the same URL using InternetExplorer.Application it works just fine though.
It seems the site checks the browser name/type that generated the request and rejects unknown browsers.
Is there a way to fool the site that the HTTPGet request is the same as the one coming from InternetExplorer.Application?
*** This returns the wrong page<br>
m.cBuffer=oip.HTTPget(m.cURL)
*** This works fine<br>
oIE=CREATEOBJECT("InternetExplorer.Application")<br>
oIE.NAVIGATE(m.cURL)
TIA
John
p.s. I'm experienced in using HTTPGet() and been using it for years
If that's all it is you can set the user agent on wwhttp to match the browser.
*** Simulate IE 11
loHttp.cUseragent = "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; Touch; rv:11.0) like Gecko"
But... it's probably more than that. Could be cookies required that are set when you first hit the site.
For best results, always check your browser requests using a proxy like Fiddler to see exactly what data is going over the wire. Then you can try to duplicate exactly what the browser is sending.