My java fragment looks like this:
... 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); ...
When I sniff what sends, he sends
OPTIONS / HTTP / 1.1
which is the default value.
However i really want to send
OPTIONS * HTTP / 1.0
How can I do it?
source share