cURL / Mailing Lists / curl-users / Single Mail


Re: Curl gets a 403 but pasting into browser gets through

From: Dan Fandrich <>
Date: Wed, 25 Mar 2009 07:35:31 -0600

On Wed, Mar 25, 2009 at 01:03:48AM -0500, Bent Franklin wrote:
> A curl directly to the final URL gets a 403. Yet I can paste the same
> URL into a fresh browser (with cookies from the site having been
> previously deleted) and get the right page.

The site could be using browser detection. Try setting curl's -A option
to something that looks like a browser.

> How can I find out what the button does?

The code has to be referred to in the page. If it's not embedded in the HTML,
it must be loaded from a URL.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
List admin:
Received on 2009-03-25