IceChat Forums

IceChat 7 => IceChat 7 Scripts => Topic started by: Amis on August 05, 2008, 06:48:23 AM

Title: Http POST method
Post by: Amis 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?
Title: Re: Http POST method
Post by: Amis on August 05, 2008, 07:15:29 AM
Hmmm.../me 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