Posting all POST information to another server

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kalisky
Forum Newbie
Posts: 2
Joined: Mon Jun 29, 2009 8:25 am

Posting all POST information to another server

Post 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.
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

Re: Posting all POST information to another server

Post by manojsemwal1 »

i think u can use hader function and through url u can pass the value to next server...
kalisky
Forum Newbie
Posts: 2
Joined: Mon Jun 29, 2009 8:25 am

Re: Posting all POST information to another server

Post 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...
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: Posting all POST information to another server

Post 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.
Post Reply