curl-users
Re: resolver in curl
From: Troy Engel <tengel_at_sonic.net>
Date: Sun, 04 Jun 2000 10:44:40 -0700
Date: Sun, 04 Jun 2000 10:44:40 -0700
Emil Laurentiu wrote:
>
> 'curl www.freshmeat.net' fails
> 'curl freshmeat.net' works
>
> The reason is:
I'd say it was actually the method used by the webserver:
$ curl -I www.freshmeat.net
HTTP/1.1 302 Found
Date: Sun, 04 Jun 2000 17:43:09 GMT
Server: Apache/1.3.12 (Unix) PHP/4.0.0
X-Powered-By: PHP/4.0.0
Location: http://freshmeat.net/
Connection: close
Content-Type: text/html
$ curl --fail www.freshmeat.net
curl: (22) The requested file was not found
Looks like Freshmeat does some sort of redirection that's non-normal in
nature; I tested against other standard CNAME urls and it seemed to work
fine.
-te
-- Troy Engel :: KeyID DF3D5207 Perl is just another tool in the Unix toolbox. Perl does one thing, and it does it well: it gets out of your face. - Larry WallReceived on 2000-06-04