SunQuest
           WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP 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:
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  
Old June 20th, 2005, 04:14 AM
rigidninja's Avatar
rigidninja rigidninja is offline
I kill threads
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 9 h 7 m 26 sec
Reputation Power: 75
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?

Reply With Quote
  #2  
Old June 20th, 2005, 09:22 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,613 jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 3 Days 5 h 32 m 57 sec
Reputation Power: 1550
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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.

__________________

Reply With Quote
  #3  
Old June 21st, 2005, 05:58 AM
rigidninja's Avatar
rigidninja rigidninja is offline
I kill threads
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 9 h 7 m 26 sec
Reputation Power: 75
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.

Reply With Quote
  #4  
Old June 21st, 2005, 10:56 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,613 jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 9th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 3 Days 5 h 32 m 57 sec
Reputation Power: 1550
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
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 
anywhere. Have you tried removing this to see what happens.

Reply With Quote
  #5  
Old June 22nd, 2005, 01:20 AM
rigidninja's Avatar
rigidninja rigidninja is offline
I kill threads
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 9 h 7 m 26 sec
Reputation Power: 75
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

Reply With Quote
  #6  
Old June 23rd, 2005, 04:37 AM
rigidninja's Avatar
rigidninja rigidninja is offline
I kill threads
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2005
Posts: 351 rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level)rigidninja User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 4 Days 9 h 7 m 26 sec
Reputation Power: 75
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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Trying to get rid of wap error


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 5 hosted by Hostway