title: HttpURLConnection Invalid HTTP method: PATCH
body: <p>When I try to use a non-standard HTTP Method like PATCH with URLConnection:</p>
  
  <pre><code>    HttpURLConnection conn = (HttpURLConnection) new URL("http://example.com").openConnection();
      conn.setRequestMethod("PATCH");
  </code></pre>
  
  <p>I get an exception:</p>
  
  <pre><code>java.net.ProtocolException: Invalid HTTP method: PATCH
  at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:440)
  </code></pre>
  
  <p>Using a higher level API like Jersey generates the same error. Is there a workaround to issue a PATCH HTTP request?</p>