cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl and cookies

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 28 Feb 2007 11:05:03 -0800

On Wed, Feb 28, 2007 at 02:32:35PM -0300, Pedro Kröger wrote:
> To sumarise, in order to access this page I have to save cookies and
> access the main page first. I tried using the -e flag, or accessing the
> main page first with curl. But I believe that the problem here is that a
> cookie file is not generated. I've tried with -b and -L as well.
>
> Any ideas?

The cookie being generated on the home page is being done in JavaScript, not
HTTP. If you look at the page, you'll see this line:

document.cookie = "imp=cnpqrestritos ; path=/; domain=.cnpq.br";

Try using curl's -b to manually specify that cookie and see if you get
any farther.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2007-02-28