RE: [PHP] Problem with fopen URL wrapper.
| From: | Richard Heyes | Date: | Wed, 20 Dec 2000 09:43:50 +0000 |
| Subject: | RE: [PHP] Problem with fopen URL wrapper. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-31183@lists.php.net to get a copy of this message | ||
> Maybe because you are getting an HTTP redirect? I don't know, just a
> thought.
>
> -- snip --
> $ telnet yahoo.com 80
> Trying 216.115.108.243...
> Connected to yahoo.com.
> Escape character is '^]'.
> GET / HTTP/1.1
> Host: yahoo.com
>
> HTTP/1.0 302 RD
> Location: http://www.yahoo.com/
> -- snip --
If I try to fopen() http://www.yahoo.com/ then I get the same
thing
happening unfortunately. However, fopening the ip of www.yahoo.com,
(64.58.76.178) works quite happily. Also get the same thing on lan
addresses, ie dns names don't work, but ip addresses do. DNS is setup ok on
the machine, ie ping, traceroute and the php function gethostbyname() (for
example) work fine.
--
Richard Heyes