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

Alexis Antonakis admin at antonakis.co.uk
Sat Oct 4 10:59:19 CDT 2003


Hi Rodrigo,

Thanks for the Info. I will look into this further.

Regards
Alexis

Rodrigo Fonseca wrote:

> 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