cURL / Mailing Lists / curl-users / Single Mail

curl-users

Login in to face book

From: kris Occhipinti <metalx2000_at_gmail.com>
Date: Fri, 6 Feb 2009 19:13:56 -0500

Hello,

I'm trying to login to Facebook with curl
I've written out the following code but the output in the html file states:
 "Cookies are not enabled on your browser. "

Here is my code:

-----------------------
#!/bin/bash

curl -A "Mozilla/4.73 [en] (X11; U; Linux 2.2.15 i686)" \
    --cookie-jar cjar \
    --data 'email=myemail' \
    --data 'password=password' \
    --data 'login=Login' \
    --location \
    --output /tmp/face.html
"https://login.facebook.com/login.php?login_attempt=1"
------------------------

I'm new to using cookie with curl so hopefully it's something small
I'm doing wrong

Thanks
-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-02-07