JavaLite HTTP is a tiny library for making HTTP requests and returning responses. It has no dependencies other than the JDK.

How to GET

How to POST

POST binary content

POST JSON content

How to POST a form

Posting a single value is easy:

Posting multiple values can be done:

or even better:

How to PUT and DELETE

Similar to the above. You can find full JavaDoc here: JavaLite HTTP JavaDoc

Basic authentication

Sending multipart requests

In case you need to send multipart messages, you can do so simply by executing one line of code:

You can use any combination of other methods to modify timeouts, basic authentication, headers, etc.

How to get the dependency

For latest version and download, refer to Maven Central


How to comment

The comment section below is to discuss documentation on this page.

If you have an issue, or discover bug, please follow instructions on the Support page