What is the Java Alternative for PHP CUrl

Possible duplicates:
How to use curl in Java
cURL equivalent in JAVA

I am a PHP developer, I really like PHP Curl for getting an HTML page, as well as posting form data.

Recently, I have a requirement to do the same functionality in Java as above. This is very good if we can do it in Spring FrameWork.

+4
source share
1 answer

If you want to use something Spring-specific, check out Spring RestTemplate .

Jersey Client is another popular REST-oriented API.

Apache HttpClient is a solid, mature choice.

And of course, there is the good old Sun JDK URL and the URLConnection API.

+3
source

All Articles