Previous Page | Next Page

The HTTP Procedure

Example 3: A POST Through a Proxy That Requires Authentication


This example makes the same POST request as in A POST Through a Proxy but uses a proxy server that requires authentication.

filename in "u:\prochttp\Testware\ProxyAuthTest_in";
filename out "u:\prochttp\Testware\ProxyAuthTest_out.txt";
data _null_;
   file in; 
   input;
   put _infile_;
   datalines4;
appid=restbook&query=jellyfish
;;;;

proc http   
   in=in 
   out=out 
   url="http://api.search.yahoo.com/WebSearchService/V1/webSearch?" 
   method="post"
   ct="application/x-www-form-urlencoded"
   proxyhost="proxyhost.company.com"
   proxyusername="your-user-name"
   proxypassword="your-password"
   proxyport=80;
run;

Previous Page | Next Page | Top of Page