curl-users
Log in using cURL
Date: Fri, 11 Feb 2011 16:22:54 +0530
Hey folks,
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&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<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<mpl=default<mplcache=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
-------------------------------------------------------------------
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-02-11