Tag Archives: apache

Apache HttpClient 4 byte handling

After I wrote my own HttpClient ResponseHandler in Apache HttpClient 4 Custom Bytes ResponseHandler, I discovered that there might be a better way. I had used the following utility to get the bytes. I found that one of their classes … Continue reading

Posted in Java | Tagged , , , , | Leave a comment

Apache HttpClient 4 String post example

Continuing from my Http Get Example, here is an example of an HttpClient4 String post example.

Posted in Java | Tagged , , , , , , , , | 1 Comment

Apache HttpClient 4 String get example

This was an older piece of code that I had. Add the following dependency. I made a wrapper method that performs a get of a given URL and returns a string.

Posted in Java | Tagged , , , , | 1 Comment