Sign in to follow this  
Followers 0
brizzonator

Anyway to send a POST request with Autoit?

2 posts in this topic

I have a hardware device that functions somewhat like a webserver.

I need to send a POST request to it containing some XML information.

I figured out how to make what I am trying to happen happen by using Autoit to create an html file the user has to doubleclick on in a secondary location, I was just wondering if there was any way with Autoit to directly send a POST request. I can't find a command doing so, but was wondering if there is a backdoor way to do it.

Thanks,

Brizz

Share this post


Link to post
Share on other sites

#2 ·  Posted (edited)

@brizzonator...This is how I post XMLs...

$raw_data='Read in some file'
$IP='Some IP address'
$xml = ObjCreate("Microsoft.XMLHTTP")
$xml.Open("POST", $IP, False) 
$xml.setRequestHeader("Content-Type", "text/xml")
$xml.Send($raw_data)
 
Msgbox(4096,"",$xml.responseText)

;)

Edited by DjDeep00

Share this post


Link to post
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
Sign in to follow this  
Followers 0