[thelist] Submitting Request.ServerVariables("REQUEST_METHOD") in the URL
Simon Willison
cs1spw at bath.ac.uk
Fri Oct 3 09:06:14 CDT 2003
> 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/
More information about the thelist
mailing list