×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2007
    Posts
    111

    Http heder problem in 9.4

    Hi,

    I have problem in reading Http heder in Symbian 9.4 (Nokia 5800 XpressMusic). I read HTTP::EContentDisposition to get dowloading file name. In Symbian < 9.4 works fine, and I get content :
    "attachment; filename=\"test.sis\""
    but in S9.4 I get only:
    "attachment"

    This is code that I use :

    Code:
    		
    RHTTPResponse resp = aTransaction.Response();
    TInt status = resp.StatusCode();
    
    RHTTPHeaders headers = resp.GetHeaderCollection();
    RStringPool string_pool = iSession.StringPool();
    RStringF contDisposition = string_pool.StringF(HTTP::EContentDisposition, RHTTPSession::GetTable());
    
    THTTPHdrVal tempHdrVal;
    TInt err = headers.GetField(contDisposition, 0, tempHdrVal);
    if (err == KErrNone)
    {
       RStringF field = tempHdrVal.StrF();
       const TDesC8& fieldValDesC = field.DesC();
       //...
      field.Close();
    }
    contDisposition.Close();
    Thx for help.

  2. #2
    Registered User
    Join Date
    Jul 2007
    Posts
    111

    Re: Http heder problem in 9.4

    Any sugestion ? maybe this is symbian bug?

Similar Threads

  1. Nokia N70 - HTTP POST problem
    By heuven in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-04-13, 15:48
  2. access points problem with HTTP client api
    By Svat_ in forum Symbian
    Replies: 1
    Last Post: 2006-12-26, 16:19
  3. Problem with HTTP POST
    By thathoo in forum Mobile Java General
    Replies: 2
    Last Post: 2006-12-18, 18:23
  4. Problem in Http Connection
    By jaceline in forum Mobile Java General
    Replies: 0
    Last Post: 2005-10-14, 04:08
  5. Http connect problem for S60 sdk
    By ewise in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2004-09-08, 04:34

Posting Permissions

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