[thelist] Submitting Request.ServerVariables("REQUEST_METHOD") in the URL

Rodrigo Fonseca lists at vega.eti.br
Fri Oct 3 09:12:50 CDT 2003


Simon Willison wrote:
>> I am trying to extract some data from a website written in ASP, using 
>> the fopen command in PHP. I can submit the variables which are 
>> required but it also appears that the site I am trying to access needs 
>> to have the Request.ServerVariables("REQUEST_METHOD") set to "Post".
>>
>> Is there anyway of doing this, either by adding the info into the URL, 
>> or otherwise?
> 
> 
> It sounds like you need to send a full on HTTP POST request to the ASP 
> script. Take a look at my HttpClient library for PHP - it lets you 
> construct GET or POST requests, send them to another site, and retrieve 
> the contents:
> 
> http://scripts.incutio.com/httpclient/
> 
> Hope that helps,
> 
> Simon Willison
> http://simon.incutio.com/
> 
> 

Take a look at Curl, Client URL Library Functions.
http://www.php.net/curl
Most hosting companies have it enabled for use.



More information about the thelist mailing list