×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    12

    interactive request handler?

    hello,
    i've a little application served by mobile web server on my n95:

    ...
    def handler(req):
    r=""
    req.content_type = 'text/plain'
    r = doSomething()
    req.write(s)
    return apache.OK

    is there a way to catch an incoming request and ask for confirmation, e.g.

    if appuifw.query(u"exec script?","query") == True
    ...

    like in an app that would run locally on the phone?
    any other idea how to confirm incoming requests?

    thanks + best, uno

  2. #2
    Nokia Developer Moderator
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,777

    Re: interactive request handler?

    Quote Originally Posted by unoll View Post
    hello,
    i've a little application served by mobile web server on my n95:

    ...
    def handler(req):
    r=""
    req.content_type = 'text/plain'
    r = doSomething()
    req.write(s)
    return apache.OK

    is there a way to catch an incoming request and ask for confirmation, e.g.

    if appuifw.query(u"exec script?","query") == True
    ...

    like in an app that would run locally on the phone?
    any other idea how to confirm incoming requests?

    thanks + best, uno
    Hi,

    I hope I understood your question,

    Well, there are certain application approaches where you might want to request a confirmation from the user when there is an incoming call.
    Eg. For a call recorder application, whether the user wants the call to be recorded or not?

    But it will possible only when the call is received, that is once the call is picked up then a confirmation can be requested,
    This can be done by using the callstatus.

    Hope it helps.

    Best Regards
    Croozeus
    Pankaj Nathani
    www.croozeus.com

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    12

    Re: interactive request handler?

    thanks croozeus,
    but here we have an incoming http-request on the mobile web server, not a phone call. what i want to do is:
    - mobile web server mws is running on the phone
    - user connects to an url on the phone, e.g. my.py?action=camera
    - my.py takes a snapshot and returns it to the requesting client.

    this works well, but i want to have control, e.g. a confirmation request, so that i (the phone user) can decide whether to let the (web)user take a snapshot or not. would it be possible somehow? it's easy in a local application on the phone with appuifw.query, but is there a way for http-requests?
    thanks & best regards, uno

  4. #4
    Registered User
    Join Date
    Mar 2008
    Posts
    47

    Re: interactive request handler?

    Hi unoll,

    I have been dealing with the same problem, that is using appuifw library from the mobile web server. Here is a description of how I solved it http://maggi.bablish.com/?p=1 hope it helps.

    In your case you could have the mobile web server make a call to a function asking for the user permission to take the picture, then take the picture and send the result back.

    best regards,
    Magnus

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2008
    Location
    Ahmedabad, Gujarat, India
    Posts
    3,852

    Re: interactive request handler?

    Quote Originally Posted by maggias View Post
    Hi unoll,

    I have been dealing with the same problem, that is using appuifw library from the mobile web server. Here is a description of how I solved it http://maggi.bablish.com/?p=1 hope it helps.

    In your case you could have the mobile web server make a call to a function asking for the user permission to take the picture, then take the picture and send the result back.

    best regards,
    Magnus
    hi maggias.

    ur Pylaunch is great i havnt tried yet but it really sounds excellent.
    keep it up and have more applications.
    thankx

Similar Threads

  1. ImportError: No module named _appuifw
    By ernesto.ferrari in forum Mobile Web Server
    Replies: 9
    Last Post: 2008-04-18, 05:36
  2. Custom request fields with http get/post
    By browndrf in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-11-08, 19:57
  3. HTTP Request Pipelining
    By shashishaw in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2006-08-25, 16:24
  4. How can i solve this error?
    By symbian-newbie in forum Symbian
    Replies: 6
    Last Post: 2006-05-23, 05:33
  5. Getting started with Carbide.vs -- running the app
    By ET3D in forum Symbian Tools & SDKs
    Replies: 6
    Last Post: 2005-11-23, 17:45

Posting Permissions

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