cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Unsuccessful Login

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Tue, 16 Nov 2010 20:49:44 +0100

Mambo Knave wrote:

> const string LoginPage = "https://us.etrade.com/e/t/user/login";
.
.
.
> curl_easy_setopt(sessionA, CURLOPT_URL, LoginPage.c_str());
> result = curl_easy_perform(sessionA); // "visiting" first
.
.
.
> curl_easy_setopt(sessionA, CURLOPT_POSTFIELDS,
stPostLogin.c_str());
> result = curl_easy_perform(sessionA); // then posting

From the login page, it seems the form action is "/login.fcc": thus you
should also change the URL for the second perform.
I just had a quick look. Forgive me if I'm wrong.
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-16