×

Discussion Board

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

    HTTPExample on series 60 handsets

    Hi,
    Im facing a problem in running the HttpExample on series 60 handsets (Im Using Nokia 6600). The example works perfectly on SDK 2.0 emulator. But when trying to run the example on the device it always produce the error (-5210 [No response from DNS server]).

    This error produced each time the application issues Get or Post request on the server. For example if trying to do Get Request using the URL "www.nokia.com" the previous error produced, so i tried to do the same get request using the row ip ddress "147.243.3.37" the error (-33 [TimeOut]) produced.

    Note:
    My Handset (Nokia 6600) uses a Wap/GPRS as an IAP.

    Is There any help regarding this issue ??, it will be highly appreciated .

    Thanks in Advance

    Rami

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

    Check IAP settings

    This example should work fine in 6600.

    Check with IAP settings, there could be some problem in settings.
    Let me know what network u are using for gprs, and also send the settings.

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    12
    Hi jntu_hareesh,
    Thank you for your reply

    Im Living in Jordan, There are 2 networks here (Fastlink, And Jordan MobileCom). The example didnt work with both of them. Mainly im doing my test on Mobilecom Network with the following Access Point settings:-

    Data Bearer : GPRS
    Access Point Name :- wap.mobilecom.jo
    Prompt Password : No
    Authintication : Normal
    Home Page :- Http://yalla.jo

    Advanced Settings
    Phone IP Address : Automatic
    Primary Name Server : 0.0.0.0
    Secondary Name Server : 0.0.0.0
    Proxy Serv. Address : 172.16.1.2
    Proxy Port Number : 8080

  4. #4
    Registered User
    Join Date
    Sep 2004
    Posts
    12
    I finally get it to work,
    The problem in the access point proxy server settings, it must be added to the application to make it work.

    i set the HTTP::EProxyUsage property to HTTP::EUseProxy, and HTTP::EProxyAddress to the form "<proxyaddr>:<port>", and then everything goes perfect.

    But the problem is that i had to hard code these values on the application, is there a way to detect them from the active connection, and then set them accordingly ???

    Best regards

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    50
    Did you get this worked? I mean avoiding the hard-coded proxy values.

    Please help me if you have got any break-thru'.

    Regards,
    ==dn==

  6. #6
    jp4symbian
    Guest

    Lightbulb Re: HTTPExample on series 60 handsets

    hello ramiqadi,

    Can you please tell me where exactly in ur code have u made these settings i.e HTTP::EProxyUsage and HTTP::EProxyAddress??

    have you set them in the HTTP header??

    Can you please give me ur code snippet since I do not know exactly what values to set and how to set....i just have a rough idea.


    Quote Originally Posted by ramiqadi

    i set the HTTP::EProxyUsage property to HTTP::EUseProxy, and HTTP::EProxyAddress to the form "<proxyaddr>:<port>", and then everything goes perfect.

    But the problem is that i had to hard code these values on the application, is there a way to detect them from the active connection, and then set them accordingly ???

    Best regards

  7. #7
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: HTTPExample on series 60 handsets

    I done the proxy setting to run the Symbian_OS_End-To-End_HTTP_API_Example_v1_1 example on the device using CHttpFilterProxyInterface.
    comment while compiling for debug and uncomment it when building for release.

    void CPiaccessEngine:oPostL()
    {
    TUriParser8 uri;
    User::LeaveIfError(uri.Parse(iUrl));

    // Get request method string for HTTP POST
    RStringF method = iHttpSession.StringPool().StringF(HTTP::EGET, RHTTPSession::GetTable());

    // Open transaction with previous method and parsed uri. This class will
    // receive transaction events in MHFRunL and MHFRunError.
    iTransaction = iHttpSession.OpenTransactionL(uri, *this, method);

    //Enable the following when build for the mobile to use proxy server
    //Uncomment the following when compilig for phone
    CHttpFilterProxyInterface::InstallFilterL(iHttpSession);


    regards,
    vasant.
    Last edited by vasant21; 2006-11-30 at 08:07.

  8. #8
    jp4symbian
    Guest

    Lightbulb Re: HTTPExample on series 60 handsets

    Can you please tell me, which SDK are you using and what device are you testing this example on?


    Quote Originally Posted by vasant21
    I done the proxy setting to run the Symbian_OS_End-To-End_HTTP_API_Example_v1_1 example on the device using CHttpFilterProxyInterface.
    comment while compiling for debug and uncomment it when building for release.

  9. #9
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: HTTPExample on series 60 handsets

    yes the device is 6600 and the sdk is 8.0a S60_2nd_FP2

    regards,
    vasant.

  10. #10
    jp4symbian
    Guest

    Exclamation Re: HTTPExample on series 60 handsets

    Are you getting any Memory Leak Error (Application Closed, ALLOC <Memory loc> ) on exiting from the application??

    I am using the same SDK , but m getting a memory leak error in the HTTPExampleClient.

    Quote Originally Posted by vasant21
    yes the device is 6600 and the sdk is 8.0a S60_2nd_FP2

    regards,
    vasant.

  11. #11
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: HTTPExample on series 60 handsets

    i am using 8.0a for Symbian_OS_End-To-End_HTTP_API_Example_v1_1
    and 7.0s for HTTPExampleClient and i dont find any problem of memory leak.

    regards,
    vasant.

  12. #12
    jp4symbian
    Guest

    Smile Re: HTTPExample on series 60 handsets

    Please do try HTTPExampleClient in 8.0a and check.
    I think you will get the memory leak error, i m already getting it.


    Thanks in advance...



    Quote Originally Posted by vasant21
    i am using 8.0a for Symbian_OS_End-To-End_HTTP_API_Example_v1_1
    and 7.0s for HTTPExampleClient and i dont find any problem of memory leak.

    regards,
    vasant.

  13. #13
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: HTTPExample on series 60 handsets

    ok, i will check it and let you know.

  14. #14
    Super Contributor
    Join Date
    Jul 2006
    Location
    Oulu, Finland.
    Posts
    1,174

    Re: HTTPExample on series 60 handsets

    i just checked it, but i was not able to post data or connect because i dont have GPRS activated sim right now, no error otherwise.

    so any specific case or sequence in which you get the error, that is while posting etc.

  15. #15
    Registered User
    Join Date
    Nov 2006
    Posts
    7

    Re: HTTPExample on series 60 handsets

    Quote Originally Posted by vasant21
    I done the proxy setting to run the Symbian_OS_End-To-End_HTTP_API_Example_v1_1 example on the device using CHttpFilterProxyInterface.
    comment while compiling for debug and uncomment it when building for release.

    void CPiaccessEngine:oPostL()
    {
    TUriParser8 uri;
    User::LeaveIfError(uri.Parse(iUrl));

    // Get request method string for HTTP POST
    RStringF method = iHttpSession.StringPool().StringF(HTTP::EGET, RHTTPSession::GetTable());

    // Open transaction with previous method and parsed uri. This class will
    // receive transaction events in MHFRunL and MHFRunError.
    iTransaction = iHttpSession.OpenTransactionL(uri, *this, method);

    //Enable the following when build for the mobile to use proxy server
    //Uncomment the following when compilig for phone
    CHttpFilterProxyInterface::InstallFilterL(iHttpSession);


    regards,
    vasant.

    hi vasant,

    i was just about to post the my problem, and i think i got the solution, i will try the CHttpFilterProxyInterface.

    Thanks for the hint.


    i also want to communicate between mobile and pc, i read you post about that and i also downloaded the microsoft sdk and i am using 6600, how exactly can i communicate using bluetooth,please explain in more detail about using that example,

    Thanks once again and waiting for your reply

Posting Permissions

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