|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
AT&T devCentral & BlackBerry(r) Webcast Series: BlackBerry and GPS -Build Location Awareness into your BlackBerry Applications, July 10th-1:00PM EST. Register Today!
|
|
#1
|
||||
|
||||
|
Trying to get rid of wap error
Hi
I am trying to create a wap version of a website - whenever I try to veiw my WAP pages, I get HTTP Error: 406 Not Acceptable It does this with all wap pages - tutorials and my own. I am using a Samsung e330 - which got a WAP browser. I can veiw the normal site on my phone no problem. Does anybody know what this error mean? |
|
#2
|
||||
|
||||
|
Maybe this explaination will help a bit. From what I can understand from this, it is something to do with the accept headers.
Want to post some code and info on how you are passing the info?
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ |
|
#3
|
||||
|
||||
|
Hi
This is in my .htaccess file Code:
# MIME Types for WAP # For PHP 4.x, use this: AddType application/x-httpd-php .wml # For normal WML pages. AddType text/vnd.wap.wml .wml # For WML embedded graphics. AddType image/vnd.wap.wbmp .wbmp and this is my test code - saved as wap1.wml Code:
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="mycard" title="My first card"> <p>Hello world!</p> </card> </wml> I dont have a problem going onto other WAP sites, hosted by the same people hosting me. This code is with help from my hosting company. Last edited by rigidninja : June 21st, 2005 at 06:01 AM. |
|
#4
|
||||
|
||||
|
Hhm,
I have wap running on server at home and hosted. Although I don't have access to httpd.conf on my host, I don't have this: Code:
# For normal WML pages. AddType text/vnd.wap.wml .wml |
|
#5
|
||||
|
||||
|
It gives me the same error, although when I run the page in a emulator it works. Maybe my phones browser is just very strict on headers or something - but the battery just ran out and I dont have a charger, so I quess I'll try tonight again.
Thanks for you help |
|
#6
|
||||
|
||||
|
Hi jabba_29
After I read the link you posted I changed my wml extension to html and now it works like a charm! whats the difference? I still use wml syntax, but an html extension - I guess my .htaccess file is a bitscrewed up. Silly question = does an html file send more bites through than a wml file if they both have the same contents? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Trying to get rid of wap error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|