×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    May 2005
    Location
    Indonesia
    Posts
    198

    Get only the HTTP Header

    Hi,

    How to get the HTTP Header without the content of the site using HttpConnection?

    thanks,
    Ronald Stevanus

  2. #2
    Nokia Developer Champion
    Join Date
    Sep 2007
    Posts
    915

    Re: Get only the HTTP Header

    I am not sure but the following methods of httpConnection can be used.

    public String getHeaderField(String name);
    public String getHeaderField(int n);
    public long getHeaderFieldDate(String name, long def);
    public int getHeaderFieldInt(String name, int def);
    public String getHeaderFieldKey(int n);



    Let me know if it workded.

  3. #3
    Registered User
    Join Date
    May 2005
    Location
    Indonesia
    Posts
    198

    Re: Get only the HTTP Header

    Hi honest_success,

    Thanks for the reply.
    I've read the HttpConnection documentation again and it's impossible to get only the HTTP Header without retrieve all the content. Even if you only request the response code, all the content will be retrieved.

    I've found another way to achieve my goal, by set If-Modified-Since in the request header.

    thanks,
    Ronald Stevanus

Similar Threads

  1. Recording in Amr Format
    By losym in forum Symbian Media (Closed)
    Replies: 12
    Last Post: 2009-03-26, 06:41
  2. Replies: 6
    Last Post: 2008-05-15, 07:55
  3. Custom HTTP Header Name in POST Request
    By srigans1 in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-08-25, 06:56
  4. HTTP header
    By xrsu in forum General Messaging
    Replies: 1
    Last Post: 2002-12-11, 08:11
  5. HTTP header and WAP209 header equivalence/precedence/conf licts
    By mobilecohesion in forum General Messaging
    Replies: 0
    Last Post: 2002-12-03, 11:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×