Statement | HTTPPost |
---|---|
Version | 2.4.9+ |
Purpose | Enables the script to post data to a web server |
The HTTPPost statement requires a url, data string, headers variable name and content variable name, in the format
HTTPPost <url> <data string> <headers variable name> <content variable name>
The following example will post the data 'test=1&data=something' to the webpage "http://www.pscs.co.uk/test.cgi", return the resulting HTTP headers into the ${hdrs} variable and return the resulting content into the ${content} variable
HTTPPost "http://www.pscs.co.uk/test.cgi" "test=1&data=something" hdrs content