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
