Jump to content

$oHTTP error


Go to solution Solved by trancexx,

Recommended Posts

When I use the code :

$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("POST", $requestUrl, False)
$oHTTP.Send()
If $oHTTP.Status = 200 Then
Return $oHTTP.ResponseText
EndIf
 
I got an error. "Variable used without being declared."
 
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
^ ERROR

I don't know what's wrong with this..

Link to comment
Share on other sites

There is nothing wrong with the code you posted. What could be a problem is that's not the whole code you run and the part that you haven't posted has MustDeclareVars option activated.

Thank you very much trancexx.

Its working fine.

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...