×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2007
    Posts
    51

    Take an argument of a URL

    Hello!
    I have a OpenC application which shows Hello World! when accessing a particular URL of Apache Mobile (raccoon). This URL has an argument:
    http://xyz.openlaboratory.net/example?hello
    I would like to take the argument (hello) from the URL with code OpenC, is it possible?

    My application has the next code:

    .....

    int GenerateContentL(request_rec* r)
    {


    ap_rputs(DOCTYPE_HTML_3_2
    "<html>\n"
    " <head>\n"
    " <title>Hello World!</title>\n"
    " </head>\n"
    " <body>\n", r);

    ap_rputs(" <p>Hello World!</p>\n", r);

    ap_rputs(" </body>\n"
    "</html>\n", r);

    return OK;

    }
    ....

    Thanks!

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Posts
    457

    Re: Take an argument of a URL

    Quote Originally Posted by jmv_ View Post
    I would like to take the argument (hello) from the URL with code OpenC, is it possible?
    Yes, in your case, for instance, r->unparsed_uri contains /example?hello, r->uri contains /example and r->args contains hello.

    Johan

Similar Threads

  1. Take an argument of a URL
    By jmv_ in forum Open C/C++
    Replies: 1
    Last Post: 2007-11-21, 12:54
  2. Nokia 6600 - URL Problem
    By prashanthsmurthy in forum Mobile Java Networking & Messaging & Security
    Replies: 0
    Last Post: 2003-12-24, 17:35
  3. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06
  4. ! Solution found for Opening WAP Browser with a url
    By jpankaj in forum Symbian Networking & Messaging (Closed)
    Replies: 2
    Last Post: 2002-11-27, 10:18
  5. Problem with Nokia D211 Linux Drivers
    By fiveam in forum Multimodecards
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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