Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Feb 2008

    How to cancel a http request

    Hi all , i am making an http request. it works fine . I am showing a progress dialog while connection is in progress. Now when user press cancel on progreess dialog the request should be cancelled.

    The pb here is my response data is very small . on cancelling pg bar i am deleting my request . But the response is so small that manytimes it completes although cancel is pressed. How to handle this situation correctly.

    If there is some confusion in my question let me know i will try to clarify....


  2. #2
    Registered User
    Join Date
    May 2007

    Re: How to cancel a http request

    everything depends on the way you send data by http.
    You will have to Close() all R-class objects like RSocket, RConnection, RHostResolver, RHTTPSession, RHTTPTransaction,RSocketServ

    ofcourse if you have ny outstanding sending operation don t forget to call CancelWrite() and etc..

    good luck

Similar Threads

  1. how to know that network connection breaks during HTTP request
    By Ajmal in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2008-09-18, 11:40
  2. Simple http request
    By Christophe.A in forum Symbian Networking & Messaging (Closed)
    Replies: 8
    Last Post: 2008-06-11, 16:42
  3. Replies: 6
    Last Post: 2008-05-15, 07:55
  4. Replies: 1
    Last Post: 2008-02-06, 05:39
  5. HTTP Request Pipelining
    By shashishaw in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-08-25, 16:24

Posting Permissions

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