How to forward/redirect an HTTP PUT Request with PHP?

Posted by benjisail on Stack Overflow See other posts from Stack Overflow or by benjisail
Published on 2010-05-08T00:57:23Z Indexed on 2010/05/08 0:58 UTC
Read the original article Hit count: 314

Filed under:
|
|
|

Hi,

I receive HTTP PUT requests on a server and I would like to redirect / forward these requests to an other server.

I handle the PUT request on both server with PHP.

The PUT request is using basic HTTP authentication.

Here is an example :

www.myserver.com/service/put/myfile.xml

redirect to

www.myotherserver.com/service/put/myfile.xml

How can I do this without saving the file on my first server and resending a PUT request using CURL?

Thanks!

© Stack Overflow or respective owner

Related posts about php

Related posts about http