The code is shown below.
To perform a GET simply type from the command line:
HttpUtility.js get http://localhost:1189/Service.svc/
To perform a POST:
HttpUtility.js post http://localhost:1189/Service.svc/ –f message.xml -h Content-Type application/xml
where the –f argument specifies the filename with the message contents and the –h argument indicates the header name and header value.
The source code can be downloaded from here.