开发者

HttpClient ssl and login.facebook.com

When I Get "https://login.facebook.com" by using Chrome, the response is 302 and redirect me to http://www.facebook.com. However, when I get "https://login.facebook.com" by using HttpClient's GetMethod, it will be blocked for a long time and finally throws a Timeout Exception.

I feel really frustrating. Is the implementation of Sun JDK's SSL which HttpClient is based 开发者_如何学Goon not compatible with facebook's login server?

Can any one tell me what should I do to connect https://login.facebook.com by using HttpClient.


You should use the facebook api for java for doing so. I think they block requests like yours, since they have made an api for developers to log in through.

You need to join the facebook developers group and create an application so you can get an API key. Se link below for more information.

Download it here

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜