Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old August 21st, 2000, 01:29 AM
mfkoo mfkoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 65 mfkoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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....

Reply With Quote
  #2  
Old August 21st, 2000, 03:12 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Start here -> http://www.devshed.com/Talk/Forums/Forum5/HTML/002497.html

Reply With Quote
  #3  
Old August 25th, 2000, 03:01 AM
mfkoo mfkoo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 65 mfkoo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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

Reply With Quote
  #4  
Old August 25th, 2000, 08:14 AM
des des is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 73 des User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 9
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)

Reply With Quote
  #5  
Old August 26th, 2000, 09:56 AM
chinnavi
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #6  
Old August 26th, 2000, 10:48 AM
d0g1e
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > Perl and WML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway