×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Dec 2007
    Posts
    30

    Unhappy I can't receive THTTPEvent::EResponseComplete

    Hello,everybody!

    I'm trying to write a HTTP engnie recently, but after I sent a GET request, In the call back function MHFRunL(), I can receive THTTPEvent::EGotResponseHeaders and THTTPEvent::EGotResponseBodyData,but THTTPEvent::EGotResponseBodyData only once, then there won't be response any more. I can't receive THTTPEvent::EResponseComplete. I don't know why.

    Who can help me?

    Thanks! Best Regards!

  2. #2
    Registered User
    Join Date
    Dec 2007
    Posts
    30

    Smile Re: I can't receive THTTPEvent::EResponseComplete

    Hi~
    I know the reason.
    I forget to cass HTTPDataSupplier::ReleaseData() after I use it to get the body data!

    Good Luck! Everyone!

  3. #3
    Nokia Developer Champion
    Join Date
    Jan 2008
    Location
    Moscow, Russia
    Posts
    3,348

    Re: I can't receive THTTPEvent::EResponseComplete

    Show your code.

    Always remember to release the body data.

    Code:
        case THTTPEvent::EGotResponseBodyData:
          {
          // Part (or all) of response's body data received. Use
          // aTransaction.Response().Body()->GetNextDataPart() to get the actual
          // body data.
    
          // Get the body data supplier
          MHTTPDataSupplier* body = aTransaction.Response().Body();
    
          ...
          
          body->ReleaseData();
          }

Similar Threads

  1. Replies: 10
    Last Post: 2009-05-04, 06:27
  2. Replies: 4
    Last Post: 2009-01-16, 06:43
  3. MMS receive size (server side programming)
    By mihai_lihatchi in forum General Messaging
    Replies: 1
    Last Post: 2005-11-16, 15:30
  4. What is the real problem to receive data calls with Nokia TDMA cel modems?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2002-12-09, 09:02
  5. What is the real problem to receive data calls with Nokia TDMA cell modem?
    By jackal_jr in forum PC Suite API and PC Connectivity SDK
    Replies: 0
    Last Post: 2002-12-04, 16:05

Posting Permissions

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