Page 1 of 1

Posting all POST information to another server

Posted: Mon Jun 29, 2009 8:27 am
by kalisky
Hi,

I have a PHP server, and a page that received some POST information (let's say some fields and a file in the _FILES array).

Now, let's say I want to post all that information to another server, can I do that?

Thanks.

Re: Posting all POST information to another server

Posted: Mon Jun 29, 2009 8:42 am
by manojsemwal1
i think u can use hader function and through url u can pass the value to next server...

Re: Posting all POST information to another server

Posted: Mon Jun 29, 2009 8:43 am
by kalisky
The thing is, I don't want the client to be redirected, I simply want to post the request myself from the server side...

Re: Posting all POST information to another server

Posted: Mon Jun 29, 2009 9:39 am
by juma929
Hello,

Cant you use streams to send this data to the server you wanted to without headers or redirects? I'm almost certain you can but streams arnt my strongest suit so we will have to see if a network programmer can confirm.

Thanks.