URLConnection tricks
From: Roedy Green (see_at_mindprod.com.invalid)
Date: 05/04/04
- Next message: biswa: "class not found error in JSP"
- Previous message: Kasper Dupont: "Re: crash during file writing, how to recover ?"
- Next in thread: Thomas Fritsch: "Re: URLConnection tricks"
- Reply: Thomas Fritsch: "Re: URLConnection tricks"
- Reply: Gordon Beaton: "Re: URLConnection tricks"
- Reply: Chris Uppal: "Re: URLConnection tricks"
- Reply: Thomas Fritsch: "Re: URLConnection tricks"
- Reply: Dave Monroe: "Re: URLConnection tricks"
- Reply: Roedy Green: "Re: URLConnection tricks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 04 May 2004 05:30:03 GMT
URLConnection urlc = url.openConnection();
urlc.setAllowUserInteraction( false );
urlc.setDoInput( true );
urlc.setDoOutput( false );
urlc.setUseCaches( true );
urlc.connect();
String mime = urlc.getContentType();
How would I modify that code to avoid getting the contents of the
file, get just the headers?
How would I turn off Keep-Alive?
-- Canadian Mind Products, Roedy Green. Coaching, problem solving, economical contract programming. See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
- Next message: biswa: "class not found error in JSP"
- Previous message: Kasper Dupont: "Re: crash during file writing, how to recover ?"
- Next in thread: Thomas Fritsch: "Re: URLConnection tricks"
- Reply: Thomas Fritsch: "Re: URLConnection tricks"
- Reply: Gordon Beaton: "Re: URLConnection tricks"
- Reply: Chris Uppal: "Re: URLConnection tricks"
- Reply: Thomas Fritsch: "Re: URLConnection tricks"
- Reply: Dave Monroe: "Re: URLConnection tricks"
- Reply: Roedy Green: "Re: URLConnection tricks"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|