cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

Re: resolver in curl

From: Troy Engel <tengel_at_sonic.net>
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 Wall
Received on 2000-06-04

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET