post.js is a command-line utility for issuing an HTTP POST request where the body contains the contents of the specifed file or the supplied string; this utility allows you to specify arbitrary HTTP headers to send along with the request. Requires MSXML 4.0.
The help information is displayed if you run the utility from the command-line without supplying any arguments:
C:\>post
HTTP POST Utility
usage: post uri [options]
-f inputFile
-s inputString
-o outputFile
-h headerName headerValue
The following example posts a SOAP request to a Web service endpoint along with a few HTTP headers:
C:\>post http://localhost/math/math.asmx -h Content-Type “text/xml“ -h SOAPAction “http://localhost/math/Add“ -f request.xml
The HTTP response is displayed in the console when don't specify an output file name.
Download here.
Posted
Jan 19 2004, 08:00 PM
by
Aaron Skonnard