title: cURL couldn't connect to host, but it connects to my domain address
body: <p>I am new to Linux. I had the php project in the Linux server. I am using the <a href="http://curl.haxx.se" rel="nofollow">cURL</a> command in my php page to access Google, but it says it couldn't access the host. </p>
  
  <p>From the command line, I can ping the Google site, while cURL and <a href="http://www.gnu.org/software/wget/" rel="nofollow">Wget</a> commands fail. </p>
  
  <p>I had checked the firewall: <code>selinux=disabled</code> and <code>selinuxtype=targeted</code>.</p>