replace
; Gather numeric response value RetValue := SubStr(RetValue,1,3)
with
regexmatch(retValue,"\b(?<Value>\d\d\d)\b",ret)
; Gather numeric response value RetValue := SubStr(RetValue,1,3)
regexmatch(retValue,"\b(?<Value>\d\d\d)\b",ret)
sRequest := DllCall("WinINet\HttpSendRequestA", "uInt",hRequest,"Str",Headers, "uInt",Strlen(Headers), "Str",POSTData,"uInt",Strlen(POSTData))
DllCall("RtlMoveMemory","uInt",&postDataBlock+Offset,"uInt",&binaryData,"uInt",binaryDataLength)
basically my question is this is there a way to send proxy username or pass with this or lerner's version of these functionsok so question
this is still a bit deep for me (understanding this well enuff to modify it)
I can use the heck out of it tho except below
but our workplace has a proxy server and i need to use NTLM
http://msdn.microsoft.com/en-us/library/aa383144(VS.85).aspx
im a bit lost when it comes to implementing this into the scripts so far
and well i dont seem to have the depth of knowledge to make anything even remotely workable from it
[ Moderator!: MSDN link fixed ]
thanks for the fix
Actually the more in the msdn i read i think i might even be pointed in the wrong direction
basically our proxy uses our Domain login information for the proxy user
In IE we arent prompted but when i use any winhttp function i get blank results
seems like im getting blocked at the proxy for instanceWININET_Init() MsgBox % UrlGetContents("https://ahknet.autohotkey.com") WININET_UnInit() returnfine at home work pc returns blank
and im able to view this site without restriction on work pc in IE
basically my question is this is there a way to send proxy username or pass with this or lerner's version of these functions
header := "Proxy-Authorization: Basic " base64(username":"password)
ipquery: ;replaces wget #noenv html := "" URL := "http://checkip.dyndns.org" POSTData := "" length := httpQuery(html,URL,POSTdata) varSetCapacity(html,-1) fileappend,..%html%`n,ipstring2.txt msgbox,, %html%,%html%,10 ;end of ipquery ExitApp #include httpQuery.ahk ;end of dynquery
#noenv length := httpQuery(html,"http://checkip.dyndns.org") varSetCapacity(html,-1) msgbox,, demo,%html%,10 ExitApp