title: How to set hostname using php curl for a specific ip
body: <p>Hi I have a server which has several virtual hosts set up on it.</p>
  
  <p>I wanted to make a curl request to this server's ip using php.
  Also I wanted to make this request to a specific hostname on the server's ip. </p>
  
  <p>Is there a way to do it?</p>
  
  <p>A bit more elaboration :
  I want to make a curl requests between my servers using internal LAN, using their internal IP. The issue is that I have several sites hosted on this server. So when i make a curl request to the internal IP of the server.. something like (curl_init(xxx.xxx.xxx.xxx)), I want to be able to be tell apache to go to a particular folder pointed to by a virtual host. I hope that made the question a bit more clear.. – Vishesh Joshi 3 mins ago edit </p>