×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Dec 2003
    Posts
    17

    Simple WAP download extension

    I hacked a small python extension which enable WAP download from a URL to a file. It is working on small file (ie 1-2Ko) but fails with larger one, I must investigate this...

    usage is :

    import wap
    gw="195.115.25.129"
    url=u"http://www.google.com/"
    file=u"E:\\index.html"
    wap.get_file(url, gw, file)

    gw must be your WAP gateway as in the connection profile. url and file are in unicode.

    Here is the source, compile it to a Symbian DLL then rename it wap.pyd :
    http://bleuazur.com/python/wap.cpp

    Here is the python module compiled for Serie 60 1st edition, maybe it work also on 2nd edition ?
    http://bleuazur.com/python/wap.pyd

    All comments are welcome about the C++ code to improve it !

  2. #2
    Registered User
    Join Date
    Dec 2003
    Posts
    17

    Updated code

    I updated the code to make it work for larger transaction and it seems to work fine.

    Now I'll concentrate to clean up the code in case of error condition (clean up stack...) and add some functions to retrieve the gateway adress from a IAP and connect silently (without user prompt for a IAP)

  3. #3
    Registered User
    Join Date
    Dec 2003
    Posts
    17

    Not working with symbian >= 7.0

    I tried the extension with a Nokia 6680 (Symbian 8) and it is not working a all. After some search I found that RWapServ and al are not supported any more from symbian 7.0...
    How is wap stack programmed on Symbian version >= 7.0 ?

  4. #4
    Registered User
    Join Date
    Aug 2004
    Location
    Hyderabad,India
    Posts
    808
    Wap stack is not supported from OS 7.0. One has to use http sessions RHTTPSession for connections and has to specify protocol as WSP/WSP.


    SSS

  5. #5
    Registered User
    Join Date
    Oct 2005
    Posts
    22

    Re: Simple WAP download extension

    Please. How can I specify protocol as WSP/WSP?

    I tried four method. They are:
    RHTTPSession::OpenL( _L8( "WSP/WSP" ) );
    RHTTPSession::OpenL( _L8( "WAP/WSP" ) );
    RHTTPSession::OpenL( _L8( "WAP" ) );
    RHTTPSession::OpenL( _L8( "WSP" ) );
    and they all leaves. I tried them on NOKIA N70 mobile phone.

    Is there some step missing? How can I send HTTP message over Wap.

    Any help would be appreciate.



    Quote Originally Posted by S.S.Sudhakar
    Wap stack is not supported from OS 7.0. One has to use http sessions RHTTPSession for connections and has to specify protocol as WSP/WSP.


    SSS

Posting Permissions

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