title: How to change the default HTTP OPTIONS parameters in Java
body: <p>My java snippet looks like:</p>
  
  <pre><code>...
  String type = "text/plain;charset=UTF-8";
  URL url = new URL("http://xxx/");
  HttpURLConnection conn = (HttpURLConnection) url.openConnection();
  
  conn.setDoOutput(true);
  conn.setRequestMethod("OPTIONS");
  conn.setRequestProperty("Content-Type", type);
  ...
  </code></pre>
  
  <p>When I sniff what this sends it sends a </p>
  
  <p>OPTIONS / HTTP/1.1</p>
  
  <p>which appears to be the default.</p>
  
  <p>However, I actually want to send </p>
  
  <p>OPTIONS * HTTP/1.0</p>
  
  <p>How would I do this?</p>