Thread: Perl and WML

    #1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    14
    Hi, I am trying to do a search using perl to output the wml file so that it can use in wap phone.

    The problem i face is that the wap browser reported "Unsupported File type...."

    Any can tell me how the fix this?

    I know that php can do it by putting the
    "<? header("Content-type: text/vnd.wap.wml"); ?>""
    on the first line of script, but how in perl....
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    65
    Rep Power
    14
    Hi, thanks for your reply...

    I had tried to put the file(.htaccess) with the code below into cgi-bin which the search.cgi is located.

    AddType text/vnd.wap.wml wml cgi
    AddType image/vnd.wap.wbmp wbmp
    AddType text/vnd.wap.wmlscript wmls
    AddType application/vnd.wap.wmlc wmlc
    AddType application/vnd.wap.wmlscriptc wmlsc

    BUT, the problem still cannot be fixed?
    It prompt the error message:-
    Unsupported Content-type: text/html

    why? Am i put the file wrongly or the code inside .htaccess??

    Can please help, this is urgent....thanksssss
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2000
    Posts
    73
    Rep Power
    14
    Hi
    when I had this problem I edited the mime.types file in the /etc directory

    and addedthis:

    text/vnd.wap.wml wml
    image/vnd.wap.wbmp wbmp
    application/vnd.wap.wmlc wmlc
    text/vnd.wap.wmlscript wmls
    application/vnd.wap.wmlscriptc wmlsc

    then did a reboot.

    this is on RED Hat Linux

    Remember to make a copy before changing the file (just in case)
  8. #5
  9. No Profile Picture
    chinnavi
    Guest
    Devshed Newbie (0 - 499 posts)
    Is there any browser available for testing wml pages.
    Actually i have CGI::WML in my Linux Box.
    I want to write wml pages .
    I am using windows 95 for my testing .
    Is there any wml browsers there?
    If so wherecan i download?

    vijay
  10. #6
  11. No Profile Picture
    d0g1e
    Guest
    Devshed Newbie (0 - 499 posts)
    Mix 1 bit of Ope with 1 bit of ra and you get the name of the best browser available.

    For the lazy ones:
    Ope + ra = Opera
    Url: www.opera.com

IMN logo majestic logo threadwatch logo seochat tools logo