×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    22

    KErrDisconnected (-36) Error for Http get Request

    When I am trying to download an image through RHttpSession, I am getting -36 error MHFRunL callback routine.

    The device used is N91 and urls are verified with native browser. This is happening only in UMTS network in Hongkong.

    Any Idea?

    I am using RHTTPSession as follows

    TPtrC8 des8((const TUint8*)DestUri);
    TUriParser8 uri;
    uri.Parse(des8);

    RStringF method = iSession.StringPool().StringF(HTTP::EGET, RHTTPSession::GetTable());

    TRAPD(error, (iTransaction = iSession.OpenTransactionL(uri, *this, method)));

    if(error!= KErrNone){
    return ERR_SESSION_OPEN_FAILED;
    }

    RHTTPHeaders hdr = iTransaction.Request().GetHeaderCollection();

    TRAP(error, SetHeaderL(hdr, HTTP::EUserAgent, KUserAgent));

    if(error!= KErrNone){
    return ERR_GETHEADER_FAILED;
    }
    TRAP(error, SetHeaderL(hdr, HTTP::EAccept, KAccept));
    if(error!= KErrNone){
    return ERR_SETHEADER_FAILED;
    }

    TRAP(error, iTransaction.SubmitL());

    if(error!= KErrNone){
    return ERR_GETHEADER_FAILED;
    }

    Thanks In Advacne
    Last edited by a_binogeorge; 2007-06-05 at 05:04.
    ----------------------------
    Bino George
    IM: a_binogeorge@yahoo.com a.binogeorge@gmail.com
    Mobile: +91-98861-74374

  2. #2
    Registered User
    Join Date
    Dec 2006
    Posts
    5

    Re: KErrDisconnected (-36) Error for Http get Request

    I am facing the same problem but the device using is E65. Would anyone help to provide the answer or some hints?

    shishio

  3. #3
    Regular Contributor
    Join Date
    Mar 2006
    Posts
    280

    Re: KErrDisconnected (-36) Error for Http get Request

    Things to check:
    Is the APN/Accesspoint the same for the browser and the app?
    Is the proxy the same?
    Are you using the same user agent? (you can check the server logs or sniff packets)
    Are you being redirected at all?

    Basically, do a packet sniff of both and see where the difference is.

  4. #4
    Regular Contributor
    Join Date
    Feb 2008
    Posts
    88

    Exclamation Re: KErrDisconnected (-36) Error for Http get Request

    Quote Originally Posted by shishio View Post
    I am facing the same problem but the device using is E65. Would anyone help to provide the answer or some hints?

    shishio
    Hi,

    How did you solve this ?

    Thanks

Similar Threads

  1. Custom request fields with http get/post
    By browndrf in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-11-08, 19:57
  2. HTTP Request Pipelining
    By shashishaw in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-08-25, 16:24
  3. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33
  4. Getting started with Carbide.vs -- running the app
    By ET3D in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-11-23, 17:45
  5. Replies: 1
    Last Post: 2003-07-10, 07: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
  •  
×