Use a variable as a URL in winhttp

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
DaveFlonder

Use a variable as a URL in winhttp

23 Nov 2017, 10:37

what is the right way (if there is one) to load a url using a variable

usrselection := http://www.something.com

oHttp := ComObjCreate("WinHttp.WinHttpRequest.5.1")
oHttp.Open("GET", "WHATdoIPUTHERE?", false) ; I tried %usrselection% and "http://%usrselection%" and without quotes and so much more
oHttp.Send()

oHtml := ComObjCreate("htmlfile")
oHtml.Write(oHttp.responseText)

only part of code, i can get it to work if i type the url

can this be done :salute:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], vikasgandhi and 327 guests