title: How to forward/redirect an HTTP PUT Request with PHP?
body: <p>I receive HTTP PUT requests on a server and I would like to redirect / forward these requests to an other server.</p>
  
  <p>I handle the PUT request on both server with PHP.</p>
  
  <p>The PUT request is using basic HTTP authentication.</p>
  
  <p>Here is an example :</p>
  
  <pre><code>www.myserver.com/service/put/myfile.xml
  </code></pre>
  
  <p>redirect to</p>
  
  <pre><code>www.myotherserver.com/service/put/myfile.xml
  </code></pre>
  
  <p>How can I do this without saving the file on my first server and resending a PUT request using CURL?</p>
  
  <p>Thanks!</p>