post.js

Service Station, by Aaron Skonnard

Syndication

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
Filed under:

Comments

Bob Lynch wrote re: post.js
on 10-12-2006 4:20 AM
I Aaron. I'm at a client site and need a fresh copy of post.js. I can't tell you how many times I've used this in the classroom to demonstrate what a soap request looks like & that you don't need a fancy tool kit.

Hope you guys are doing well.

Bob

Add a Comment

(required)  
(optional)
(required)  
Remember Me?