cURL / Mailing Lists / curl-library / Single Mail

curl-library

Post login information

From: Giuseppe Calà <jiveaxe_at_gmail.com>
Date: Wed, 31 Jan 2007 18:28:20 +0100

Hi to everyone,
this is my first post in this mailinglist since i'm new using libcurl. I use
this library above all creating little programs to send sms thanks to the
several internet web services. Until now! I discovered this site:

http://www.jajah.com/login.aspx

after the subscription, 10 sms are available.

To grab some info for the login form I use the firefox extension "Live HTTP
Headers" and then i customize the program to handle the form. But i have
errors.

This is the section code (i use QT for the gui):

[CODE]
CURL *easyHandle;
curl_global_init(CURL_GLOBAL_ALL );
easyHandle = curl_easy_init();
string data =
"__LASTFOCUS=&__EVENTTARGET=ctl00%24ContentBox1%24LoginButton&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJLTk1NjgyMzQzD2QWAmYPZBYCAgUPZBYCAgMPZBYCZg9kFgJmDxYCHglpbm5lcmh0bWwFFjxiPkFjY2VkaSAoTG9naW4pIDwvYj5kGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBSBjdGwwMCRDb250ZW50Qm94MSRQZXJtYW5lbnRMb2dpbg%3D%3D&ctl00%24ContentBox1%24Email="
+ lineEdit2->text() + "&ctl00%24ContentBox1%24Pwd=" + lineEdit3->text();
curl_easy_setopt(easyHandle, CURLOPT_POSTFIELDS, data.c_str());
curl_easy_setopt(easyHandle, CURLOPT_VERBOSE, 1);
curl_easy_setopt(easyHandle, CURLOPT_URL, "http://www.jajah.com/login.aspx
");
curl_easy_perform(easyHandle);
curl_easy_cleanup(easyHandle);
curl_global_cleanup();
[/CODE]

lineEdit2 store the email
lineEdit1 store the password

Since informations inserted during subscription are fake the data for the
login, hoping that someone can help me, are:
email: swoomanoln_at_kriocoudek.mailexpire.com
password: 123qwe

Looking at the web page source i can see several javascript code: is,
perhaps, this the problem?

Hoping that someone can help me, thanks in advance
Giuseppe
Received on 2007-01-31