How can I use http request methods like HEAD, TRCAE, OPTIONS etc with urlConnection. I tried setRequestProperty("TRACE", "") but still I get the contents of the file.