cURL / Mailing Lists / curl-users / Single Mail

curl-users

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

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

On Wed, Mar 25, 2009 at 01:03:48AM -0500, Bent Franklin wrote:
> http://www.example.com/search?foo=bar&bazz=quux
>
> 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

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2009-03-25