cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Sending password and username

From: darekg11 <darekg11_at_tlen.pl>
Date: Tue, 03 May 2011 23:11:17 +0200

Dnia 3 maja 2011 21:03 Iskander Ben mahmoud &lt;salexandre.bm_at_gmail.com&gt; napisał(a):
you can use the option : CURLOPT_POSTFIELDS and post le user name and the password, ( suppose that the post url is :  connect.php?usr=XXXX&amp;pass=XXXX ) if you are using firefox you can get $_POST var with "data tamper" add-on
2011/5/3 Alan Wolfe &lt;alan.wolfe_at_gmail.com&gt;
Essentially you have to look at how the site itself sends the username
and password in the http request, and then mimic that http request
with libcurl.
libcurl does HTTP but it doesn't parse html or fill out web forms.
On Tue, May 3, 2011 at 10:49 AM, darekg11 &lt;darekg11_at_tlen.pl&gt; wrote:
&gt; Hi, how can I send password and username to the server? There is one site with login page with 2 boxes: username and password. How can I send information there and receive anwser from server?
&gt;
&gt; -------------------------------------------------------------------
&gt; List admin: http://cool.haxx.se/list/listinfo/curl-library
&gt; Etiquette:  http://curl.haxx.se/mail/etiquette.html
&gt;
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

--
Skander Ben Mahmoud
Administrateur et Créateur de Pro-Programming.net.-------------------------------------------------------------------List admin: http://cool.haxx.se/list/listinfo/curl-libraryEtiquette: http://curl.haxx.se/mail/etiquette.html
I used add-on and got:
POSTDATA=login=eqeae&amp;passwd=adadad
So in libcurl I send login=xxx&amp;passwd=xxx ?

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-05-03