Jump to content

Interference with the InetRead command when using the proxifier


Recommended Posts

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

i tested anythin again but not solved the problem....

 

#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 by r2du-soft
Link to comment
Share on other sites

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 by TheXman
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...