title: How to know the url that is calling the destination url using curl in the destination url?
body: <p>Okay, I have this setup:</p>
  
  <pre><code>//in example1.com, I am setting cURL &lt;br /&gt;
  $c = curl_init(); &lt;br /&gt;
  curl_setopt($c, CURLOPT_URL, 'http://example2.com');
  
  
  //now in example2.com &lt;br /&gt;
  Is it possible to get the URL "example1.com" which is calling this URL (example2.com)?
  </code></pre>
  
  <p>Using <code>file_get_contents('php://input')</code>, I can get the input of example1.com but how can I get the URL which is the "example1.com" here in example2.com?</p>