Code Comments
Programming Forum and web based access to our favorite programming groups.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.
Post Follow-up to this messageOn Sun, 30 Mar 2008 00:20:02 -0700 (PDT), Ravi <ra.ravi.rav@gmail.com>
wrote, quoted or indirectly quoted someone who said :
>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.
if you can't do it that way, you can do it with raw sockets. See
http://mindprod.com/jgloss/fileio.html for how.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
Post Follow-up to this messageOn Sun, 30 Mar 2008 00:20:02 -0700 (PDT), Ravi wrote:
> 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.
Did you try HttpUrlConnection.setRequestMethod()?
/gordon
--
Post Follow-up to this message> Did you try HttpUrlConnection.setRequestMethod()? Yes it didn't help.
Post Follow-up to this messageOn Tue, 1 Apr 2008 13:45:38 -0700 (PDT), Ravi <ra.ravi.rav@gmail.com> wrote, quoted or indirectly quoted someone who said : >Yes it didn't help. have a look at the code at http://mindprod.com/products1.html#HTTP Get that working then gradually modify it to your needs. It may help to start from some code that already works. -- Roedy Green Canadian Mind Products The Java Glossary http://mindprod.com
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.