4

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

I am a PHP developer, I am very much comfortable with PHP Curl for getting HTML page, as well as posting the form data.

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.

Community
  • 1
  • 1
Ganesh
  • 45
  • 1
  • 3

1 Answers1

3

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

The Jersey Client is another REST-oriented API that is popular.

Apache HttpClient is a solid, mature choice.

And of course there are the good old Sun JDK URL and URLConnection APIs.

sourcedelica
  • 23,940
  • 7
  • 66
  • 74