The HTTP Procedure |
This example makes a POST method call to an external server and, therefore, requires the use of a proxy server. Parameters to the POST are read from ProxyTest_in and the response is written to ProxyTest_out.txt.
filename in "u:\prochttp\Testware\ProxyTest_in"; filename out "u:\prochttp\Testware\ProxyTest_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="proxygw.abc.sas.com" proxyport=80; run;
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.