r2du-soft Posted July 23, 2020 Share Posted July 23, 2020 hi when i use from proxifier and proxifier is open and enable if i use from command InetRead or _HTTP_Get for connect to a api the returned value is null !! but if i use the api address in browser (Chrome or ....) i see the return value !! I do not know how it is possible. I want to contact the api with autoit when any proxy is on or off this is the proxyfire report log: [07.24 01:57:28] snagiteditor.exe *64 - 67.227.186.229:80 error : Could not connect through proxy 127.0.0.1:50245 - Reading proxy replay on a connection request failed with error 10054 [07.24 01:57:41] AutoIt3.exe - api.NNNNN.com:80 error : Could not connect through proxy 127.0.0.1:50245 - Reading proxy replay on a connection request failed with error 10054 [07.24 02:01:37] taskhostw.exe *64 - 51.143.53.152:443 error : Could not connect through proxy 127.0.0.1:50245 - Reading proxy replay on a connection request failed with error 10054 Link to comment Share on other sites More sharing options...
r2du-soft Posted July 25, 2020 Author Share Posted July 25, 2020 No one has an idea to solve the problem? Link to comment Share on other sites More sharing options...
Nine Posted July 25, 2020 Share Posted July 25, 2020 Have tried this ? r2du-soft 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
r2du-soft Posted July 26, 2020 Author Share Posted July 26, 2020 (edited) i tested anythin again but not solved the problem.... expandcollapse popup#include-once #include <MsgBoxConstants.au3> #include <WinHttp.au3> #include <HTTP.au3> Local $Main_Address = "api.google.com" Local $Child_Address = "/form/check_form.php" Local $API_Param = "ApiKey=GHlk39dfkHFddokjo&Product=51PY318110KDJR61A&Unic_Id=CPU:BFEBFBFF000506E3" Local $Full_Address = "http://api.google.com/form/check_form.php?ApiKey=GHlk39dfkHFddokjo&Product=51PY318110KDJR61A&Unic_Id=CPU:BFEBFBFF000506E3" Method_1_POST() Method_1_GET() MsgBox(0, "Method_2_GET", Method_2_GET()) Func Method_1_POST() $hInternet = _WinHttpOpen() $hConnect = _WinHttpConnect($hInternet, $Main_Address) $sResult = _WinHttpSimpleRequest($hConnect, "POST", $Child_Address, Default, $API_Param) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hInternet) MsgBox(0, 'Method_1_POST', $sResult) EndFunc Func Method_1_GET() $hInternet = _WinHttpOpen() $hConnect = _WinHttpConnect($hInternet, $Main_Address) $sResult = _WinHttpSimpleRequest($hConnect, "GET", $Child_Address, Default, $API_Param) _WinHttpCloseHandle($hConnect) _WinHttpCloseHandle($hInternet) MsgBox(0, 'Method_1_GET', $sResult) EndFunc Func Method_2_GET() Local $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") Local $res = $oHTTP.Open("GET", $Full_Address, False) If @error Then Return SetError(1, 0, 0) #forceref $res $oHTTP.Send() If @error Then Return SetError(2, 0, 0) Local $sReceived = $oHTTP.ResponseText Local $iStatus = $oHTTP.Status If $iStatus = 200 Then Return $sReceived Return SetError(3, $iStatus, $sReceived) EndFunc also is tested that functions but when proxifire is turned on functions return the value: Method_1_POST = 0 Method_1_GET = 0 Method_2_GET = 0 but when the proxifire is turned off all function returned true string value from server in finally if proxifire is turned on , on my api returned true string value from server (From Google Chrome) but autoit return 0 Edited July 26, 2020 by r2du-soft Link to comment Share on other sites More sharing options...
Danp2 Posted July 26, 2020 Share Posted July 26, 2020 21 minutes ago, r2du-soft said: $hInternet = _WinHttpOpen() This command supports optional parameters dealing with proxy settings. Check the WinHTTP help file for available options. r2du-soft 1 Latest Webdriver UDF Release Webdriver Wiki FAQs Link to comment Share on other sites More sharing options...
r2du-soft Posted July 26, 2020 Author Share Posted July 26, 2020 i tested i method and parameter but (if proxifire is on) the returned value is 0 but (if proxifire is on) i can see returned value in Google Chrome Link to comment Share on other sites More sharing options...
TheXman Posted July 26, 2020 Share Posted July 26, 2020 (edited) On 7/23/2020 at 4:48 PM, r2du-soft said: this is the proxyfire report log: [07.24 01:57:28] snagiteditor.exe *64 - 67.227.186.229:80 error : Could not connect through proxy 127.0.0.1:50245 - Reading proxy replay on a connection request failed with error 10054 [07.24 01:57:41] AutoIt3.exe - api.NNNNN.com:80 error : Could not connect through proxy 127.0.0.1:50245 - Reading proxy replay on a connection request failed with error 10054 [07.24 02:01:37] taskhostw.exe *64 - 51.143.53.152:443 error : Could not connect through proxy 127.0.0.1:50245 - Reading proxy replay on a connection request failed with error 10054 Looking at this Proxifier log, how do you know if Proxifier is set up and configured properly? All of the requests, from 3 different sources, failed with what appears to be a Connection Reset error. Have you been able to verify that ANY requests go through successfully when Proxifier is enabled? Proxifier comes with a Proxy Checker tool. Until you can show a successful log from the Proxy Checker tool, which means we can rule out an improperly configured proxy, any assumption that your issue has anything to do with AutoIt is pure speculation at this point. This is especially true given the fact that you have already pointed out that your API call works when submitted through a browser, but not when using a script with Proxifier enabled. Lastly, I hope the Google API key that you posted above is used for testing only. API keys are like passwords. They should not be posted in public forums. Edited July 26, 2020 by TheXman CryptoNG UDF: Cryptography API: Next Gen jq UDF: Powerful and Flexible JSON Processor | jqPlayground: An Interactive JSON Processor Xml2Json UDF: Transform XML to JSON | HttpApi UDF: HTTP Server API | Roku Remote: Example Script About Me How To Ask Good Questions On Technical And Scientific Forums (Detailed) | How to Ask Good Technical Questions (Brief) "Any fool can know. The point is to understand." -Albert Einstein "If you think you're a big fish, it's probably because you only swim in small ponds." ~TheXman 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