cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: automatic login

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Mon, 21 Apr 2008 10:11:30 -0700

On Sun, Apr 20, 2008 at 02:23:06PM +0200, Bernhard Koll wrote:
> i'm writing a code, but still from the beginning i have a problem ^^
>
> curl -k -s cookie.txt -c cookie.txt -d "LoginTemplateID=BPAKmCKO73oAAAEZx4FTwGHe&TargetQueryString=Page=issite://EKI-S2-Site/storefront/home/portal/start.page&Login=user&Password=password" -o response.html https://www.t-home.de/is-bin/INTERSHOP.enfinity/WFS/EKI-S2-Site/de_DE/-/EUR/PresentationPipeline-Start;sid=BAIX6YJ0UPUX6cp8rwYdcaN8NEOdvGbjGifOHrXhjFKbzeBacn8=?Page=issite://EKI-S2-Site/storefront/home/portal/start.page
>
> it does not login. does anybody know where the problem is?

There are too many possible problems to be able to tell with certainty what
the problem here is. A couple of strong possibilities: you may need to
obtain a cookie from another page on the site before you can log in, or
you may need to put a magic number into the submitted form which is
obtained from the login page.

As usual, try comparing what curl does in the transaction with that a
browser does for the same login, using LiveHTTPHeaders or Wireshark.

>>> Dan

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