简体   繁体   English

Http客户端发布方法

[英]Http Client Post Method

How can I post username and password for Linked In using http client in java. 如何在Java中使用http客户端发布Linked In输入的用户名和密码。 In Linked we found Some Parameter like: 在链接中,我们发现了一些参数,例如:

{"source_app", ""},
{"session_key", session_key},
{"session_password", session_password},
{"signin", "Sign%20In"},
{"session_redirect", ""},
{"csrfToken", csrfToken},
{"sourceAlias", sourceAlias}

And also how to maintain Cookies in post httpClient. 还有如何在httpClient中维护Cookies。

I think official documentation of httpclient covers how to POST data Documentation and how to handle cookies Cookie httpclient 我认为官方文档httpclient介绍如何POST数据文档 ,以及如何处理Cookie 饼干的HttpClient

This is also a handy tutorial Tutorial . 这也是一个方便的教程Tutorial Take a loook at these sites/tutorials and write some code for your application, than ask some specific question for the problem you are facing. 看一下这些站点/教程并为您的应用程序编写一些代码,而不是针对所面临的问题提出一些特定的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM