Cherokee Posted January 27, 2014 Share Posted January 27, 2014 I'm trying to set a proxy in _WinHttp Here's my code $hOpen = _WinHttpOpen($userAgent) $hConnect = _WinHttpConnect($hOpen, $host, $SSL) _WinHttpSetDefaultProxyConfiguration(1, "84.40.120.192:8080") $hLoginResult = _WinHttpSimpleFormFill($hConnect, $referer, $actionUrl, _ $formID, _ "name:" & $inputUser, $user, _ "name:" & $inputPass, $pass) ConsoleWrite($hLoginResult & @CRLF) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) But it's just using my regular IP. I'm not too familiar with using proxies inside _WinHttp so any help is appreciated. Link to comment Share on other sites More sharing options...
Solution trancexx Posted January 27, 2014 Solution Share Posted January 27, 2014 (edited) ;... $hOpen = _WinHttpOpen($userAgent, $WINHTTP_ACCESS_TYPE_NAMED_PROXY, "84.40.120.192:8080") ;... $hOpen = _WinHttpOpen($userAgent, $WINHTTP_ACCESS_TYPE_NAMED_PROXY, "84.40.120.192:8080") $hConnect = _WinHttpConnect($hOpen, $host, $SSL) $hLoginResult = _WinHttpSimpleFormFill($hConnect, $referer, $actionUrl, _ $formID, _ "name:" & $inputUser, $user, _ "name:" & $inputPass, $pass) ConsoleWrite($hLoginResult & @CRLF) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) Edited January 27, 2014 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
Cherokee Posted January 27, 2014 Author Share Posted January 27, 2014 (edited) ;... $hOpen = _WinHttpOpen($userAgent, $WINHTTP_ACCESS_TYPE_NAMED_PROXY, "84.40.120.192:8080") ;... $hOpen = _WinHttpOpen($userAgent, $WINHTTP_ACCESS_TYPE_NAMED_PROXY, "84.40.120.192:8080") $hConnect = _WinHttpConnect($hOpen, $host, $SSL) $hLoginResult = _WinHttpSimpleFormFill($hConnect, $referer, $actionUrl, _ $formID, _ "name:" & $inputUser, $user, _ "name:" & $inputPass, $pass) ConsoleWrite($hLoginResult & @CRLF) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hOpen) Thanks that works perfectly Edited January 27, 2014 by Cherokee Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now