×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Sep 2005
    Posts
    43

    HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Hi,

    My symbian C++ application, which makes HTTP calls, is running fine if i use Internet access point.

    But, when WAP access point is used, it hangs/times-out ... i could not see any GPRS traffic under the Connection icon in series 60 phones. Any idea on resolving this?

    Thanks,
    symbian_ravi

  2. #2
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    224

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    Hi,

    Have you got any work around of getting this problem. I guess WAP gateway operator does not allow connection from symbian applications which are not verified by them.
    Regards,
    shagor

  3. #3
    Registered User
    Join Date
    Aug 2005
    Posts
    13

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Proxies in wap APN's keep reading bytes until the message is complete. They do not allow, for example, a streaming sort of response (e.g. a multipart http response). If your message response lasts forever (as is the case for a video streaming response) the proxy cuts the connection when a time-out expires (and you get the corresponding exception).

    When you use internet access point there is no proxy in between and connection progresses in the right way.

  4. #4
    Registered User
    Join Date
    Sep 2005
    Posts
    43

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    Thanks, shagor and fgomezm.

  5. #5
    Registered User
    Join Date
    Aug 2004
    Posts
    3

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Hi Ravi,

    did you solve your problem? if yes, how? i am facing similar problem. what should i do?

    Thanks,
    Ravi Kamdar

  6. #6
    Regular Contributor
    Join Date
    Nov 2005
    Location
    Amman/Jordan
    Posts
    322

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Quote Originally Posted by rkgroups
    Hi Ravi,

    did you solve your problem? if yes, how? i am facing similar problem. what should i do?

    Thanks,
    Ravi Kamdar
    hey guys ..

    the solution is .... to add a proxy filter ....

    add to your client engine " http engine "
    include <chttpfilterproxyinterface.h>

    and in your consturctor of the client engine " http engine "
    CHttpFilterProxyInterface::InstallFilterL(iSession);

    DONE ... you can use wap now ...

  7. #7
    Regular Contributor
    Join Date
    Dec 2005
    Posts
    121

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    Hello dakoz,

    please check:

    http://discussion.forum.nokia.com/fo...469#post207469

    Thank You very much!

  8. #8
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Is this still necessary for S60 rel 3?

    I notice that in the Maintenance Release S60 rel 3 SDK, "httpfilterproxyinterface.h" has been removed (although it is present in the beta SDK).

    Thanks for any info.

  9. #9
    Registered User
    Join Date
    Feb 2006
    Posts
    17

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Quote Originally Posted by dakoz
    hey guys ..

    the solution is .... to add a proxy filter ....

    add to your client engine " http engine "
    include <chttpfilterproxyinterface.h>

    and in your consturctor of the client engine " http engine "
    CHttpFilterProxyInterface::InstallFilterL(iSession);

    DONE ... you can use wap now ...
    After adding the above code to the ExampleClient exaple, appln is working on device,but on click of exit it is giving App Closed ExampleClient with error code KERN EXEC 0.
    Help in solving the problem....

  10. #10
    Registered User
    Join Date
    Mar 2006
    Posts
    2

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    I cannot find the ChttpFilterProxyInterface.h header ??

    :-(

  11. #11
    Regular Contributor
    Join Date
    Feb 2005
    Posts
    328

    Wink Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-Out?

    Here you go... copied from beta SDK
    Attached Files Attached Files

  12. #12
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    Quote Originally Posted by vidyamg View Post
    After adding the above code to the ExampleClient exaple, appln is working on device,but on click of exit it is giving App Closed ExampleClient with error code KERN EXEC 0.
    Help in solving the problem....
    Hi, I am facing the same problem. When call iSession.Close(), KERN-EXEC 0 appear. Did you solve your problem now and how?

    Thanks.
    poporz, Music sharing software for S60 1rd & 2rd.
    Play music during call. Support MP3 and one-key playing.
    刨乐,音乐分享软件,在通话过程中播放音乐。支持S60第一版和第二版。支持MP3,支持一键快速播放。
    http://www.poporz.com

  13. #13
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    130

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    You have to add init RConnection yourself to fix KERN-EXEC 0 error.

    Code:
    // .h
    RConnection iConnection;
    
    // .cpp Init part
    TInt err = KErrNone;
    User::LeaveIfError(iSocketServ.Connect());
    if ((err = iConnection.Open(iSocketServ)) != KErrNone)
    {
    	iSocketServ.Close();
    	User::Leave(err);
    }
    if ((err = iConnection.Start()) != KErrNone)
    {
    	iConnection.Close();
    	iSocketServ.Close();
    	User::Leave(err);
    }
    
    // .cpp destroy part
    iConnection.Stop();
    iConnection.Close();
    iSocketServ.Close();
    By the way, did you notice that this thread was dead nearly 2 years already

  14. #14
    Regular Contributor
    Join Date
    Jan 2007
    Posts
    139

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    Quote Originally Posted by neois View Post
    You have to add init RConnection yourself to fix KERN-EXEC 0 error.

    Code:
    // .h
    RConnection iConnection;
    
    // .cpp Init part
    TInt err = KErrNone;
    User::LeaveIfError(iSocketServ.Connect());
    if ((err = iConnection.Open(iSocketServ)) != KErrNone)
    {
    	iSocketServ.Close();
    	User::Leave(err);
    }
    if ((err = iConnection.Start()) != KErrNone)
    {
    	iConnection.Close();
    	iSocketServ.Close();
    	User::Leave(err);
    }
    
    // .cpp destroy part
    iConnection.Stop();
    iConnection.Close();
    iSocketServ.Close();
    By the way, did you notice that this thread was dead nearly 2 years already
    Thank you. Do you mean I should use the RConnection to replace the RHTTPSession and RHTTPTransaction?
    poporz, Music sharing software for S60 1rd & 2rd.
    Play music during call. Support MP3 and one-key playing.
    刨乐,音乐分享软件,在通话过程中播放音乐。支持S60第一版和第二版。支持MP3,支持一键快速播放。
    http://www.poporz.com

  15. #15
    Regular Contributor
    Join Date
    Mar 2004
    Posts
    130

    Re: HTTP Application - Series 60 C++ - Connection using WAP Access Point Hangs/Times-

    No, not replace. Just add RSocketServ and RConnection initialization before make a http request.

    Old:
    1. Connect RHTTPSession
    2. Open RHTTPTransaction

    New:
    1. Connect RHTTPSession
    2. Connect RSocketServ
    3. Open RConnection
    4. Open RHTTPTransaction

    Hope this help.

Similar Threads

  1. Connect to WAP Access Point
    By psousa in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2008-10-28, 11:56
  2. How to set default access point for wap browser
    By birol.sekerci in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2006-05-17, 08:43
  3. Http Connection problem with Series 40 devices
    By madhavis in forum Mobile Java General
    Replies: 0
    Last Post: 2005-01-21, 06:01
  4. Setting up WAP access for Series 60 Emulator
    By yarden_admon in forum Symbian Tools & SDKs
    Replies: 1
    Last Post: 2003-05-13, 11:16
  5. Series 60Series 60 MIDP Concept SDK Beta 0.2 Linux bug?
    By kauppi in forum Mobile Java Tools & SDKs
    Replies: 3
    Last Post: 2003-04-07, 09: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
  •  
×