HTTP Procedure

Example 1: A Simple POST Request

Details

This example makes a POST method call to a server on the local network. Parameters to the POST are read from IN and the response is written to OUT.TXT.

Program

filename in "u:\prochttp\Testware\in";
filename out "u:\prochttp\Testware\out.txt";
data _null_;
   file in;
   input;
   put _infile_;
   datalines4;

server=localhost&action=list&type=store&user=your-user-name&password
=your-password&details=true&x=1
;;;;

 proc http in=in out=out url="http://localhost.com/rsm/rstool"
     method="post"
      ct="application/x-www-form-urlencoded";
run;