Jump to content

Recommended Posts

Posted (edited)

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
  • Solution
Posted

Do what?

Search "WinHTTP" in the forum, you will find the WinHTTP UDF topic, download it and convert the object code you have in functions.

Br, FireFox.

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
×
×
  • Create New...