cURL / Mailing Lists / curl-users / Single Mail

curl-users

Fwd: Log in using cURL

From: Swapnil Ashtekar <swapashtekar_at_gmail.com>
Date: Sat, 5 Mar 2011 00:35:22 +0530

Hey all,

        I am trying to access the twitter,gmail,facebook etc through
terminal.
        I am using cURL for the same. But the things for facebook are not
working.
        I used following :

  1.curl http://mail.google.com/mail
The terminal shows html part below -
<HTML>
<HEAD>
<TITLE>Moved Temporarily</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Moved Temporarily</H1>
The document has moved <A HREF="
https://www.google.com/accounts/ServiceLogin?service=mail&amp;passive=true&amp;rm=false&amp;continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&amp;bsv=1eic6yu9oa4y3&amp;scc=1&amp;ltmpl=default&amp;ltmplcache=2<https://www.google.com/accounts/ServiceLogin?service=mail&passive=true&rm=false&continue=http%3A%2F%2Fmail.google.com%2Fmail%2F%3Fui%3Dhtml%26zy%3Dl&bsv=1eic6yu9oa4y3&scc=1&ltmpl=default&ltmplcache=2>
">here</A>.
</BODY>
</HTML>

    How to proceed with the part above ?

    2.Similarly for twitter,
       curl http://twitter.com

   3. But in above two cases I am getting only the login page or the
error *PAGE
HAS BEEN MOVED TEMPARORILY*.

For log in I tried command as below :

curl -u username:password http://mail.google.com/mail -v

    3. But in case of facebook,nothing happened when I used
       curl http://www.facebook.com

    How to resolve this basics ?

Please guide me, I am novice.

Thanks in advance.

-- 
Cheers
Regards,
Swapnil
-- 
Cheers
Regards,
Swapnil Ashtekar
PICT
9960444464

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-03-04