×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    May 2008
    Posts
    77

    how to know that network connection breaks during HTTP request

    i am sending HTTP requests to send some base64 encoded data to server,i am reading this data from a file encode it and add this as a body part and sends it using the HTTP. when i submit request i got different events in MHFRunL method from HTTP framework such as THTTPEvent::EGotResponseHeaders,THTTPEvent::EGotResponseBodyData,THTTPEvent::ESucceeded or THTTPEvent::EFailed and according to these events i read some headers from the response during THTTPEvent::EGotResponseHeaders event and in THTTPEvent::ESucceeded or THTTPEvent::EFailed events i sends callbacks to other class which reads next binary data, encodes it add this data as body part of HTTP request and then submit it, so a cycle of request sending and getting response is started until all the data in a file is sent over the server using callbacks. According to the defined all above this process completes automatically. such as we will send request and wait for response, when we got response we prepare next request and send it.
    but during all this process some times when i submit request and then nothing happens means i didn't get the events from HTTP frameworks in response. i might be think that its due to network connection break, if i am right how i can fix this issue?

  2. #2
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Re: how to know that network connection breaks during HTTP request

    In that case are u getting some error code at MHFRunError..

    Thanks

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    77

    Re: how to know that network connection breaks during HTTP request

    thanks, but first let me check first

  4. #4
    Registered User
    Join Date
    May 2008
    Posts
    77

    Re: how to know that network connection breaks during HTTP request

    currently i tried to log some thing from my MHFRunError method and when i launch application it started to send data at server using WLAN connection, then i shutdown the WLAN then observed that request has submitted but i got no response event from THTTPEvent and MHFRunError is also not called.

  5. #5
    Registered User
    Join Date
    May 2008
    Posts
    77

    Re: how to know that network connection breaks during HTTP request

    come on gurus and champions help, i m in trouble buddy

  6. #6
    Super Contributor
    Join Date
    Jul 2007
    Posts
    596

    Re: how to know that network connection breaks during HTTP request

    Hi Ajmal,

    I have checked that if there is no wlan connection , In that case

    control goes to mhfrunl with some -ve error code.

    if there is no connection and u r not getting any err code it means

    there is some problem in ur request submission.

    Anyway for ur first question here is a nice example to check how the connection made every time find it here
    http://www.forum.nokia.com/info/sw.n...I_Example.html
    check the function SetupConnectionL(). in this example.

    u can post ur code if u still facing some problem.

    thanks

Similar Threads

  1. Simple http request
    By Christophe.A in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2008-06-11, 16:42
  2. HTTP Connection on 6131
    By abreslin in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2007-09-28, 09:12
  3. Socket or HTTP connection over Bluetooth- Nokia N70
    By Hiltarus in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2007-04-12, 14:55
  4. Unable To Disconnect Http Connection
    By jaceline in forum Mobile Java Networking & Messaging & Security
    Replies: 8
    Last Post: 2006-09-21, 08:23
  5. Nokia 6600 http connection problems on certain WAP gateways
    By deanpullen in forum Mobile Java Networking & Messaging & Security
    Replies: 13
    Last Post: 2005-12-25, 17:04

Posting Permissions

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