Jump to content

Error $oHTTP.Send


Go to solution Solved by FireFox,

Recommended Posts

error: The requested action with this object has faild

#RequireAdmin
#NoTrayIcon
#include <String.au3>
$file = fileopen(@ScriptDir & "/exe.exe",16)
$exefilename= FileRead($file)
FileClose($file)
$sDataToPost = "exefile=" & $exefilename
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", "http://eample.com/test.php" , False)
$oHTTP.SetRequestHeader("User-Agent", "Test")
$oHTTP.SetRequestHeader("Referrer", "http://www.google.com")
$oHTTP.SetRequestHeader("Content-Type", "application/x-www-form-urlencoded")
$oHTTP.Send($sDataToPost)

exe is 10 mb

php file is reading binary and save it (Without problem)

and i can use this in small files without errors

any help?

Edited by basel1998
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...