Posted by Chung Leong on 08/16/06 17:23
Charlie King wrote:
> What I want to do is to have the browser go to the target page, with
> my variables, by POST. I.e. exactly as if the user had clicked on a
> [submit] button in a form whose action was POST and url was the target
> site.
Oops. Shouldn't have responded having read only half the post.
Try calling stream_get_meta_data() on the resource returned by fopen
and see what it contains. Often times an application would immediately
redirect to a GET page after a POST. If you redirect the user to that
link, then it'd work.
You can redirect a POST using the HTTP status code 307. Non-IE browsers
would show an alert box however.
[Back to original message]
|