Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

WinHTTP - Get Used Proxy From Session Handle

$
0
0
[ 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. :(

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>