cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: 410 Error?

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sat, 7 Jun 2003 10:01:04 -0700

On Sat, Jun 07, 2003 at 04:57:03PM +0100, Robert Synnott wrote:
> Hi,
> Using libcurl accessing files on a particular server, I'm getting:
>
> HTTP/1.0 410 Gone
> Date: Sat, 07 Jun 2003 14:47:18 GMT
> Server: Apache/1.3.27 (Unix) mod_gzip/1.3.26.1a PHP/4.3.2 mod_perl/1.27
> Content-Type: text/html; charset=iso-8859-1
> Connection: close
> Proxy-Connection: close
>
> The requested Resource is Gone, If you feel this is in error, please
> enable refe
> rrers in your browser, firewall or proxy
>
> However, I can access the same page through netscape. When I try to use
> wget, I get the 410 error as well. Is there a way to get libcurl to
> retrieve these?

It's probably a misconfigured server that does content negotiation based on
the User-Agent:. Try passing a different one to curl with the
--user-agent command-line option, e.g. --user-agent Mozilla/4.78

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
Received on 2003-06-07