×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    Perl script to detect HTML/WML

    Hi, I need a perl script by which if I wanted to have single address(domain name). If typed www.yourname.com; the script would automatically detect for the kind of dat that is sought for, that is either wml or html automatically..... by doing this we can have one web address for both html as well wml.

    Please help!!!!!! Thanks in advance

    Posted by Kunnal Motwani, kunnal@neteditsolutions.com
    on July 14, 2000 at 05:16

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    RE: Perl script to detect HTML/WML

    Posted by pauly, genie@genie.ie
    on July 15, 2000 at 03:29

    simplest thing is read the Accept field in the HTTP headers:

    if the requesting agent accepts wml, assume it's a wap browser, else set output as HTML

  3. #3
    Super Contributor
    Join Date
    Mar 2003
    Posts
    2,426

    RE: Perl script to detect HTML/WML

    Take a look at www.wdvl.com

    There is a complete perl tutorial/reference with examples

Posting Permissions

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