×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Jun 2005
    Posts
    7

    Share connection between RHTTPSession and RHttpDownloadMgr

    I am doing a project, which involve using HTTP POST method to upload data, and HTTP GET to download file. I use RHTTPSesson for the POST part, and use RHttpDownloadMgr for the GET part.

    However, user will be asked for the connection two times, as RHTTPSession and RHttpDownloadMgr will ask the user themself. Is here any possible way to reduce the number of connection query?

    Actually, I already know that, the RHTTPSession can also do the HTTP GET. However, we still want to use RHttpDownloadMgr for the download resuming feature.

    Moreover, we noticed that, the web browser seems able to share their connection between the web browsing and the download manager.

    Thanks to your help
    Last edited by luzi82; 2008-11-18 at 07:11. Reason: make the title more read-able

  2. #2
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: Share connection between RHTTPSession and RHttpDownloadMgr

    Hi,

    You can share the same connection. Which means once your send is done, pass on the control to download mgr, so you need not prompt user for two connections.
    Since you have a requirement for seperate downloadmgr so I guess there is no other way to achieve this.
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  3. #3
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,751

    Re: Share connection between RHTTPSession and RHttpDownloadMgr


  4. #4
    Registered User
    Join Date
    Jun 2005
    Posts
    7

    Re: RHTTPSession, RHttpDownloadMgr, share connection

    Thanks to your help.

    Actually, I have already look into the RConnection and RSocketServ before. However, it seems that the RHttpDownloadMgr does not work with them. At least, the RHttpDownloadMgr have no function to deal with them. Even the RConnection and RSocketServ have been prepared somewhere, the RHttpDownloadMgr still ask for connection itself.

    Is here any method to pass the RConnection and RSocketServ to the RHttpDownloadMgr? Thanks.

  5. #5
    Registered User
    Join Date
    Feb 2007
    Location
    Tampere
    Posts
    370

    Re: RHTTPSession, RHttpDownloadMgr, share connection

    Can you share the connection code of your httpdownloadmgr?
    Regards

    - MVP
    "Dare To Dream" - A.P.J.Kalam

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: RHTTPSession, RHttpDownloadMgr, share connection

    You can try and pass the IAP ID to the connection manager via the EDlMgrIap attribute.

    http://wiki.forum.nokia.com/index.ph...ogrammatically
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  7. #7
    Registered User
    Join Date
    Jun 2005
    Posts
    7

    Re: RHTTPSession, RHttpDownloadMgr, share connection

    Thanks to your suggestion, I try it now.

  8. #8
    Registered User
    Join Date
    Jun 2005
    Posts
    7

    Re: RHTTPSession, RHttpDownloadMgr, share connection

    Thanks to your help, Paul.Todd. It works. Thanks.

    ps. Use following code to obtain iapid from RConnection:
    iConnection.GetIntSetting(_L("IAP\\Id"),iapid);

Similar Threads

  1. Problem MMC+USB Connection
    By Fede81 in forum Symbian
    Replies: 1
    Last Post: 2007-06-14, 06:13
  2. Connection Hangs
    By mkaf in forum Mobile Java Networking & Messaging & Security
    Replies: 4
    Last Post: 2006-07-10, 06:37
  3. Http Connection
    By jaceline in forum Mobile Java Tools & SDKs
    Replies: 1
    Last Post: 2006-06-09, 16:53
  4. Nokia 3585i and PC Suite 4.95; NO CONNECTION
    By chrism2202 in forum PC Suite API and PC Connectivity SDK
    Replies: 2
    Last Post: 2003-04-21, 12:10
  5. D211 & PPTP connection over GPRS
    By telesnap in forum Multimodecards
    Replies: 0
    Last Post: 2003-04-16, 14:45

Posting Permissions

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