title: cURL : Proxy Server getting target image
body: <p>I need some help. In creating a simple proxy server using this curl function.</p>
  
  <pre><code>$ch = curl_init($IP);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: $HOSTNAME'));
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  echo curl_exec($ch);
  </code></pre>
  
  <p>it can redirects to the other server but it does change the links, like to target an image, what function should i need to add? thank you. </p>