×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Aug 2008
    Location
    Ireland
    Posts
    29

    Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    I am Just wondering if anyone else has had any issues using HTTP POST on some of the new Symbian 3^ devices?

    I have some very well tested code that is used to post some serialised data to our servers. It recompiled without issue for Symbian 3^. The code itself works absolutely fine on the Symbian 3^emulator. However it will not work on the device (N8 or C7). The server appears to be timing out. I am beginning to think that the device is inserting something extra to the request data.

    In order to do a simple test i have taken the Webclient sample supplied with the SDK and have made some minor modifications.
    1. Set it to make a POST request instead of a GET
    2. Set a few extra headers and values as part of the request
    3. Add a Data supplier to read the serialised data that i need to post to the server from a file.

    Again the request works fine on the emulator. However it fails on the device. It does not matter what type of access point i am using (3G / WLAN).
    So has anyone else any experience with HTTP POSTing on these newer devices??

    Regards,
    Brian

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    You could check what happens on the network level, preferably on the server side.
    It may worth a try installing the code compiled for S60 5th.

  3. #3
    Registered User
    Join Date
    Aug 2008
    Location
    Ireland
    Posts
    29

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    Hi,
    Thanks for the reply.
    The sample app works fine on both 3rd and 5th editions. I will have to look server side to see exactly what the device is doing to the data.
    Just wondering if this was a "known issue" or if something has changed that has not been documented.
    Regards,
    Brian

  4. #4
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,692

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    Quote Originally Posted by brian.egan View Post
    The sample app works fine on both 3rd and 5th editions. I will have to look server side to see exactly what the device is doing to the data.
    I meant installing the S60 5th code on a Symbian^3 device - just to rule out problems with the SDK itself (version 0.8...)
    Just wondering if this was a "known issue" or if something has changed that has not been documented.
    Talking about known issues regarding a device which has been released less than a week ago, and an other one which officially does not even exist, might be a bit optimistic.

  5. #5
    Registered User
    Join Date
    Aug 2008
    Location
    Ireland
    Posts
    29

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    So I have found the issue.
    The problem is with the MHTTPDataSupplier class. If the GetNextDataPart method sets the datapart to have a length of 0 and returns ETrue then this causes a problem.
    Previously this all worked fine.
    So this means that the GetNextDataPart implementation in the following wiki example will probably cause some issues on these newer devices - http://wiki.forum.nokia.com/index.ph...part/form-data

    I have been able to work around this so all is working fine now.
    Thanks for the help.
    Regards,
    Brian

  6. #6
    Registered User
    Join Date
    Oct 2010
    Posts
    3

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    Hi Brain,

    we are facing a similar problem, can you please share us the work around. We will greatly appreciate your help.

    Thanks
    Ram

  7. #7
    Registered User
    Join Date
    Aug 2008
    Location
    Ireland
    Posts
    29

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    Hi Ram,
    The answer is posted above in my last response - "If the GetNextDataPart method sets the datapart to have a length of 0 and returns ETrue then this causes a problem"
    So that means that GetNextDataPart can return ETrue even if the data length is 0.
    You simply just need to handle this case in wherever you are calling GetNextDataPart from.
    Brian

  8. #8
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    India
    Posts
    1,173

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    Quote Originally Posted by ayansys View Post
    Hi Brain,

    we are facing a similar problem, can you please share us the work around. We will greatly appreciate your help.

    Thanks
    Ram
    What problem you are actually facing?

  9. #9
    Registered User
    Join Date
    Oct 2010
    Posts
    3

    Re: Symbian 3^ (Nokia N8 & C7) HTTP Post problem

    Thanks Brian for a quick response. We are not calling explicitly. These function are called during the post operation as a call back function. we are not explicity calling the GetNextDataPart explicity. We are trying to change the return value in the GetNextDataPart fucntion but is not yielding any results.

    Appriciate any help with this.

    Ram

Similar Threads

  1. HTTP Post problem on Symbian 9.2 - TCP stuck?
    By bgenady in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2008-08-04, 19:33
  2. Nokia N70 - HTTP POST problem
    By heuven in forum Symbian Networking & Messaging (Closed)
    Replies: 3
    Last Post: 2007-04-13, 15:48
  3. nokia 6600 - a problem with sending data with HTTP POST
    By Ludwik Ejsmont in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2006-08-31, 08:44
  4. Using HTTP POST & Nokia 6600 to upload octet stream to server
    By ssandor in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-09-19, 11:00
  5. Nokia 3230 HTTP Post Problem
    By alpyor in forum Symbian
    Replies: 1
    Last Post: 2005-05-13, 04:15

Posting Permissions

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