×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Mar 2003
    Posts
    54

    Testing HTTP client for Nokia 3650; Looking to share code

    I have been working on an HTTP client for Symbian Series 60 that sends an
    image up to an http server. The code I have is modeled after the sockets
    example that ships with Nokia's Series 60 emulator. Unfortunately, the code
    only works half the time in the emulator and I do not have a real phone to
    test it on. Even if I did it seems on-target debugging is next to
    impossible. I am confident that the socket code is either 99% correct or
    100% correct and is failing due to a bug in the emulator.

    So what does all this have to do with the reader? Well, I am hoping to find
    someone else who needs a C++ HTTP client for the Nokia 3650 and would be
    willing to collaborate in testing my code in exchange for a copy of the
    code.

    Details about the current code base:
    1) I have scanned in some hand-drawn UML diagrams for the code. The
    diagrams are slightly dated, but should help the reader better grasp the
    flow of the code.
    2) The client is single threaded and uses lots of active objects to achieve
    this.
    3) Unfortunately the Symbian code has no unit tests. Although I tried for a
    long time I was unable to devise a test framework that would allow me to
    test active objects within the emulator.
    4) The Symbian code includes a moderately complete parser for parsing HTTP
    1.0 responses.
    5) In theory the Symbian code can send anything down the socket that
    implements a particular custom interface.
    6) There is a simple corresponding Java servlet that saves the image
    uploaded by the Symbian client.
    7) The server side java code is managed by an ant build system and has some
    simple junit tests written for it.
    8) Both the Symbian and Java code is maintained in CVS.

    I hope someone finds this proposal interesting. I look forward to building
    a mutually beneficial relationship. Please send me an email if your
    interested.

    Sincerely,
    James Carpenter
    3258-20 Via Marin
    La Jolla, CA 92037
    Phone: (858) 587-6056
    Fax: (309) 418-2935
    Email: nawkboy@yahoo.com
    AOL IM: nawkboyrules

  2. #2
    Registered User
    Join Date
    May 2003
    Posts
    24

    Working example of HTTP POST

    I wonder if my code here will help you - if you base64 encode your image to a file this code will usrl encode it and send it to the server as a HTTP POST.

    If this helps you then I would like to see a copy of your code.

    oledocmeth@yahoo.com

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    24

    Whoops - here it the link to code


Posting Permissions

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