Mobile Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreMobile 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:
  #1  
Old July 1st, 2008, 03:39 AM
leehongbeng leehongbeng is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 16 leehongbeng User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 37 m
Reputation Power: 0
Arrow WML - What is "HTTP Error: 411 Length Required"?

Hi all,

When I'm using 'post' method to process a file, the phone browser display "HTTP Error: 411 Length Required" and can't proceed. So, I tried another files which it tested work fine before and now it also result the same error message. I've been googling around but there is no specific answer for me. Anyone here know how to solve it? And what causes this actually? Thank you

password.php
Code:

<?php

?>
<?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="card1" title="Login">
<p mode="wrap">

Enter username and password to log in.<br/>
Username
<input name="username" type="text"></input><br/>
Password
<input name="password" type="password"></input>

<do type="accept" label="Login"> 
<go href="password2.php" method="post"> 
</go> 
</do>
</p>
</card>

</wml>


passpord2.php
Code:

<?php

?>
<?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="card2" title="Welcome">

<?php
//print_r($_POST);

$username = $_POST['username'];
$password = $_POST['password'];
echo $username;
echo $password;
$HitError = "false";

if (empty ($username))
{
echo ("You did not enter a username, please go back and try again.<br>");
$HitError = "true";
}
?>

</card>
</wml>



Reply With Quote
  #2  
Old July 1st, 2008, 01:53 PM
jabba_29's Avatar
jabba_29 jabba_29 is online now
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,769 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th 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 6 Days 6 h 17 m 41 sec
Reputation Power: 1632
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
It is because you are not posting anything.
In your login page you need to add something like:
PHP Code:
snippet
<?php
// your other code
<do type="accept" label="Login">
<
go href="password2.php" method="post">
<
postfield name="password" value="$(password)"/>
<
postfield name="username" value="$(username)"/>
</
go>
__________________
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


__________________

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 July 3rd, 2008, 01:05 AM
leehongbeng leehongbeng is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 16 leehongbeng User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 h 37 m
Reputation Power: 0
Smile

I just add on the missing code:
Code:
<postfield name="password" value="$(password)"/> 
<postfield name="username" value="$(username)"/>


but the HTTP error still the same. So i tested it on Nokia Phone Browser 4.0, it somehow cant even connect to internet. Then i tried it on WinWap, but i found that it wasnt user friendly at all. Then i uninstalled Openwave Phone Browser 6.0 and reinstall with 7.0 which is the latest version. And it works fine. I think it could be the bugs or something, coz no matter the extra codes are add on or not, it still works fine. Thank you again for your big help, jabba_29

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreMobile Programming > WML - What is "HTTP Error: 411 Length Required"?


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