Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>It seems your libcurl is built to use it's own name resolver, instead of system name resolver. In this case it does not use hosts file at all.</p> <p>There are 3 possible solutions of this:</p> <ol> <li>update your php_curl.dll (current windows php binaries 5.5.4);</li> <li>install local DNS server and configure it to use hosts file and configure your networking to use 127.0.0.1 as a DNS server;</li> <li>Set CURLOPT_DNS_USE_GLOBAL_CACHE to true (turned on by default) and CURLOPT_DNS_CACHE_TIMEOUT to a larger value (2 mins by default);</li> </ol> <p><strong>In addition:</strong> php 5.5.4 windows binaries from php.net uses system resolver for curl. It uses internal cache (when enebled with <code>CURLOPT_DNS_USE_GLOBAL_CACHE</code>) and system DNS cache. I have checked it with some tests. A also checked the speed of name resolution by curl - it's identical to localhost (for any records written in hosts file). So, i'm absolutely shure it's not a PHP problem:</p> <ol> <li>there is a mistake in <code>https://127.0.01/methodCall</code> must be <code>https://127.0.0.1/methodCall</code>. curl always return total_time = 0 in such cases.</li> <li>first of all try to request static content like an empty file and use http instead of https.</li> <li>disable all firewalls and uninstall all antivirus software (stopping antivirus software is not enought in some cases).</li> <li>check web-server's virtual hosting configuration, and look at what you're requesting.</li> <li>check all fields of <code>curl_getinfo($curl)</code>, especially <code>"primary_ip"</code>.</li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload