Jump to content

Anyway to send a POST request with Autoit?


Recommended Posts

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

Link to comment
Share on other sites

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