Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_wap thread: Gateway inconsistencies with HTTP POST and GET


Message #1 by "Andy Latham" <andrew.latham@m...> on Thu, 1 Nov 2001 14:48:19
If you are having trouble with the phone hanging on a request and not 
getting through to the appserver you may want to bear this in mind:

Using certain gateways (I'm afraid I am not permitted to list which ones) 
requests that use HTTP POST must pass parameters as postfields otherwise 
the request will just hang. So, for example  

<anchor>Register New User
    <go href="registration.jsp" method="post"/>
</anchor>
 
.. is valid WML and works on emulators and on phones through 'certain' 
gateways, nut will not work sometimes because there are no postfields. 
This will work because there are:
 
<anchor>Go to Trial Area
    <go href="trialArea.jsp" method="post">
        <postfield name="loginClient" value="trial"/>
    </go>
</anchor>
 
Da daa...! So the rule of thumb is if you aren't passing any post params 
don't specify a method and it will default to HTTP GET and will work.
Hope this helps someone,
Andy

  Return to Index