Author Topic: Http POST method  (Read 2920 times)

Amis

  • Newbie
  • *
  • Posts: 17
Http POST method
« on: August 05, 2008, 06:48:23 AM »
Can somebody show me a simple script that uses POST method to send data to the webserver?

Amis

  • Newbie
  • *
  • Posts: 17
Re: Http POST method
« Reply #1 on: August 05, 2008, 07:15:29 AM »
Hmmm...
* Amis loves Google

Sorry for doublepost

Code: [Select]
Set http = CreateObject("Microsoft.XmlHttp")
URL = "http://www.something.com/"
http.open "POST", URL, FALSE
        http.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"
http.send "var1=134&var2=xyz"
response = http.responsetext
SendCommand "/echo -a Result: " & response
        set httpd = nothing