I have 2 PCs in my network - laptop with IP address 192.168.0.11 and desktop with IP address 192.168.0.10
My laptop is Windows 10 running Apache 2.4.29 and PHP 5.6.32.
I have installed the multichain software version 1.0.2 on both PCs. I have created chain1 on the laptop and connected to it from the desktop. I can run both getinfo and getpeerinfo from both PCs and they show the correct information.
When I run the web demo on my laptop it shows nothing but
Error: HTTP 0
http://127.0.0.1:6311/
I have stepped through the web demo with my debugger and the response to curl_exec() is always false. Below is the output from curl_getinfo():
array(26) {
["url"]=> string(22) "http://127.0.0.1:6311/"
["content_type"]=> NULL
["http_code"]=> int(0)
["header_size"]=> int(0)
["request_size"]=> int(257)
["filetime"]=> int(-1)
["ssl_verify_result"]=> int(0)
["redirect_count"]=> int(0)
["total_time"]=> float(0)
["namelookup_time"]=> float(1.0E-6)
["connect_time"]=> float(1.0E-6)
["pretransfer_time"]=> float(1.0E-6)
["size_upload"]=> float(48)
["size_download"]=> float(0)
["speed_download"]=> float(0)
["speed_upload"]=> float(48)
["download_content_length"]=> float(-1)
["upload_content_length"]=> float(48)
["starttransfer_time"]=> float(1.0E-6)
["redirect_time"]=> float(0)
["redirect_url"]=> string(0) ""
["primary_ip"]=> string(9) "127.0.0.1"
["certinfo"]=> array(0) {}
["primary_port"]=> int(6311)
["local_ip"]=> string(9) "127.0.0.1"
["local_port"]=> int(60247)
}
I have checked my Apache logs and no error is shown.
I have checked my firewall, which is managed by Norton Security, and it shows that it has allowed inbound traffic on port 6311.
Why am I getting an empty response with each curl_exec() ?
I have even tried replacing curl_exec() with fsockopen/fputs/fgets but the result is the same - no error, empty response