Possible Duplicates:
How to use curl in Java
cURL equivalent in JAVA可能重复:如何在JAVA中的Java cURL等效项中使用curl
I am a PHP developer, I am very much comfortable with PHP Curl for getting HTML page, as well as posting the form data.
我是一名PHP开发人员,我非常熟悉PHP Curl获取HTML页面以及发布表单数据。
Recently i have a requirement, to do the same functionality in Java, like above. It is very fine if we can do that in Spring FrameWork.
最近我有一个要求,就像在Java上做同样的功能,如上所述。如果我们能在Spring FrameWork中做到这一点,那就太好了。
1 个解决方案
#1
3
If you want to use something Spring-specific check out the Spring RestTemplate.
如果你想使用特定于Spring的东西,请查看Spring RestTemplate。
The Jersey Client is another REST-oriented API that is popular.
Jersey客户端是另一种受欢迎的面向REST的API。
Apache HttpClient is a solid, mature choice.
Apache HttpClient是一个坚实,成熟的选择。
And of course there are the good old Sun JDK URL and URLConnection APIs.
当然还有好的旧的Sun JDK URL和URLConnection API。
#1
3
If you want to use something Spring-specific check out the Spring RestTemplate.
如果你想使用特定于Spring的东西,请查看Spring RestTemplate。
The Jersey Client is another REST-oriented API that is popular.
Jersey客户端是另一种受欢迎的面向REST的API。
Apache HttpClient is a solid, mature choice.
Apache HttpClient是一个坚实,成熟的选择。
And of course there are the good old Sun JDK URL and URLConnection APIs.
当然还有好的旧的Sun JDK URL和URLConnection API。