Jump to content

Recommended Posts

Posted

How to post data with xmlhttp. I tried it...but an error occured..

i tried this...

$obj=ObjCreate("Microsoft.XMLHTTP")

$obj.setRequestHeader('Content-Type','application/x-www-form-urlencoded')

$obj.open("POST","localhost",False)

$obj.send("name=piyush")

MsgBox(0,"",$obj.responsetext)

this error was shown by autoit

$obj.setRequestHeader('Content-Type','application/x-www-form-urlencoded')

$obj.setRequestHeader('Content-Type','application/x-www-form-urlencoded')^ ERROR

am i going wrong in something...

Thx.

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

Posted

  On 2/20/2010 at 3:43 PM, 'PsaltyDS said:

From MSDN: setRequestHeader Method:

What version of IE are you running?

:mellow:

i am using internet explorer 8.,,,please try to rin my script in your computer.and tell me whethrt it works in your comp or not.may be there may be something missing in my computer....

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

Posted

Ah, do .open before setting the properties:

$obj=ObjCreate("Microsoft.XMLHTTP")
$obj.open("POST","http://www.autoitscript.com",False)
$obj.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
$obj = 0

:mellow:

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law
Posted

  On 2/20/2010 at 4:18 PM, 'PsaltyDS said:

Ah, do .open before setting the properties:

$obj=ObjCreate("Microsoft.XMLHTTP")
$obj.open("POST","http://www.autoitscript.com",False)
$obj.setRequestHeader('Content-Type','application/x-www-form-urlencoded')
$obj = 0

:mellow:

thanks...now it is working...

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

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
  • Recently Browsing   0 members

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