We are currently using HttpClient 4.3 for all REST communications with other service providers, however, one of our recent providers has some custom methods sitting within the API.
I was trying to figure out a way to send custom methods (Methods not in standard such as GET, POST, PUT, etc.).
Anyone has similar experience before by using HttpClient? Thanks!
I suggest that you use the RequestBuilder class (javadoc) to construct the Request objects. The static RequestBuilder.create method allows you to specify any "method" String for your request object.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With