[ autoit ]
#include<winhttp.au3> $open = _WinHttpOpen(Default, $WINHTTP_ACCESS_TYPE_NAMED_PROXY, "123.123.123.123:8080") $test = _WinHttpQueryOption($open, $WINHTTP_OPTION_PROXY) If @error Then ConsoleWrite("!>Error: " & @error & @CR) Else ConsoleWrite("+>Success: " & $test & @CR) EndIf ConsoleWrite(">Wroking: " & _WinHttpQueryOption($Open, $WINHTTP_OPTION_USER_AGENT) & @CR) _WinHttpCloseHandle($open)
I'm having a little trouble understanding how to retrieve the used proxy from a session handle in winhttp.
From what I know, msdn says it deals with pointers, I don't think that the _WinHttpQueryOption() function is handling it right, I'm not entirely sure though...
Any ideas?
Basically, I just wana get the "123.123.123.123:8080" string by using the _WinHttpQueryOption() function, I can manage it using arrays but it would be more convinient using that function to reduce complexity.
![:(](http://aut1.autoit-cdn.com/forum/public/style_emoticons/autoit/sad.gif)