Adds support for arbitrary HTTP methods to curl API, as allowed by original php extension.
Uses trick to bypass java.net's method name validation, as done by the Jersey project.
See com.sun.jersey.client.urlconnection.URLConnectionClientHandler.
Has not been tested with https connections here.