Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Using HEAD TRACE OPTIONS with http
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.

Report this thread to moderator Post Follow-up to this message
Old Post
Ravi
03-30-08 10:17 AM


Re: Using HEAD TRACE OPTIONS with http
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
03-30-08 10:17 AM


Re: Using HEAD TRACE OPTIONS with http
On 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

--

Report this thread to moderator Post Follow-up to this message
Old Post
Gordon Beaton
03-31-08 11:20 AM


Re: Using HEAD TRACE OPTIONS with http
> Did you try HttpUrlConnection.setRequestMethod()?
Yes it didn't help.


Report this thread to moderator Post Follow-up to this message
Old Post
Ravi
04-02-08 12:45 AM


Re: Using HEAD TRACE OPTIONS with http
On 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

Report this thread to moderator Post Follow-up to this message
Old Post
Roedy Green
04-02-08 12:45 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Java Help archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 08:47 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.