URLConnection tricks

From: Roedy Green (see_at_mindprod.com.invalid)
Date: 05/04/04


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.


Relevant Pages

  • Re: URLConnection tricks
    ... Roedy Green schrieb: ... >How would I modify that code to avoid getting the contents of the ... >file, get just the headers? ...
    (comp.lang.java.programmer)
  • Re: URLConnection tricks
    ... Roedy Green schrieb: ... >How would I modify that code to avoid getting the contents of the ... >file, get just the headers? ...
    (comp.lang.java.programmer)
  • Re: URLConnection tricks
    ... > How would I modify that code to avoid getting the contents of the ... > file, get just the headers? ...
    (comp.lang.java.programmer)
  • Macro to replace styles used in tables (Word 2000/Windows)
    ... I am in over my head! ... the first page as well as the tables in the headers from this style ... The number of tables in the documents I need to modify can range from ... Currently working with Word 2000 for Windows running on Windows 2000. ...
    (microsoft.public.word.tables)
  • Re: Macro to replace styles used in tables (Word 2000/Windows)
    ... Dim pCell as Word.Cell ... but haven't been particularly successful in my quest. ... > the first page as well as the tables in the headers from this style ... > The number of tables in the documents I need to modify can range from ...
    (microsoft.public.word.tables)