The REST API documentation gives an example, and mentions that is uses Http Client (by which I assume they mean Apache HttpClient?). The example is here:
https://www.salesforce.com/us/developer/docs/api_rest/Content/dome_update_fields.htm
This does not seem to be quite right. In particular, I cannot find any class called PostMethod in Apache HttpClient. Perhaps my assumptions about that being the library in use are not right.
There are problems making the PATCH request using Jersey, as discussed here:
https://stackoverflow.com/questions/22355235/patch-request-using-jersey-client
Apache HttpClient is mentioned there as a work around.
Can anyone point me to a working example of making an update using PATCH, with Apache HttpClient, or just any way that works from Java 7? Thanks for your help.