delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

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....


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....

TOP

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

TOP

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)



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....

TOP

Back Forum