|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-05-30 22:31 UTC] sniper@php.net
[2001-05-30 22:32 UTC] sniper@php.net
[2001-06-29 13:25 UTC] dhubbard at dino dot hostasaurus dot com
[2001-09-09 10:10 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 14:00:01 2025 UTC |
Use readfile("http://www.internic.net") and it works fine, returning the InterNIC web page. Use readfile("http://www.internic.net/cgi/whois?whois_nic=blah.com&type=domain") against their page, which is a valid GET-request URL and works great from a browser and readfile doesn't work. I dug a little deeper and did a packet capture while trying my PHP page with both URL's. Both URL's return just fine in the packet capture, complete information, so why does the second URL with the query not work? The absolute only difference I can see in the packet capture that could make a difference here is that the normal pages are returned with a HTTP/1.1.200 on the top whereas the other URL is missing the HTTP response code! I'm not sure if it's legal HTTP for that code to be missing but could that be the problem? Thanks, Dave Hubbard