posted 14 years ago
While it is not hard to get a basic GET or POST to work using just the Java libraries, there is a lot more to doing it properly and completely.
Things like "chunked" responses must be supported, and my code was in production for several months before I even knew that it could happen.
I strongly recommend just using the Apache Http client library. Its easy to use, does all the edge cases properly, handles normal and SSL, etc.