curl-users
Re: session cookie
Date: Fri, 9 Dec 2005 09:16:29 -0600
It really depends on how complicated the javascript is. Does it
reference anything in the html, or is it pure javascript? If it's
just pure javascript, you might have some luck pushing it through a
javascript engine such as Mozilla's Spidermonkey. The alternative is
that you'll have to process the javascript in your own script. I've
had some success with conbinations of grep, sed, awk, and some custom
written C.
Ralph
On 12/9/05, Cyril <cyrilguillot_at_gmail.com> wrote:
> After a verification, this is my poblem.
> The cookie is written on the client by a JavaScript page.
>
> Has somebody a solution to obtain the JavaScript page and done the job?
>
> Thanks a lot.
> Cyirl.
>
> 2005/12/9, Ralph Mitchell <ralphmitchell_at_gmail.com>:
> > You need to check what the server returns. There is probably some
> > javascript that set/gets a cookie, and curl doesn't do javascript...
> > If that's the case, you have to work out what it does and mimic it in
> > your script.
> >
> > Are you following the whole chain of pages?? Jumping into the middle
> > of a web site can mean you miss out on a cookie exchange that happens
> > with an earlier page. One time I was trying to grab pages from a
> > server that was handing out a different cookie with each frame of the
> > page. I had to get every single stinking frame, in the correct
> > sequence, before it would let me have the frame I actually wanted...
> >
> > Ralph Mitchell
> >
> >
> > On 12/9/05, Cyril <cyrilguillot_at_gmail.com> wrote:
> > > Hi everybody,
> > >
> > > when I interrogate a server with generate a "session cookie", with a
> > > cURL inline command, I obtain a message that says my browser doesn't
> > > support cookies.
> > >
> > > I don't undestand this message because I don't use a browser but cURL.
> > >
> > > What I understand is that cURL doesn't support cookie.
> > > So I try to use -c or/and -b option but with the same result.
> > >
> > > The manual says that -c option is to tell in wich file the server
> > > write cookies and -b to tell in which file the server read cookies,
> > > right?
> > >
> > > Has anybody already have this problem?
> > > Somebody can tell me how to interrogate this server?
> > >
> > > Thank's a lot.
> > > Cyril.
> > >
> > >
> >
> >
>
>
Received on 2005-12-09