cURL / Mailing Lists / curl-users / Single Mail


Re: script help

From: Dan Fandrich <>
Date: Mon, 10 Apr 2006 10:26:12 -0700

On Mon, Apr 10, 2006 at 12:10:17PM -0400, Blurry wrote:
> You all have been helping with trying to script a login session. The
> user experience
> 1) Key in URL
> 2) Get password screen
> 3) enter creds
> 4) get final page.
> But there is alot more going on, I have curl logging in and getting
> part of the way but I can't get past step #5. If you see the entire
> process below, am I kidding myself trying to write a script that does
> all that to load ONE FRICKIN page !!!

It looks like step #6 is the last one you're probably interested in; the
remainder are images and JavaScript code that's loaded for that page. You
need to create a log like the one you gave but including the POSTed data.
Then you can compare what curl sends with what a browser sends and
spot the differences. If step #5 is where you're stumbling, then it's
probably the POSTed data in that step that's different from what the
server expects, or the cookie isn't sent back.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-04-10