This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Java Micro Edition and the fly likes Problem using http post over j2me Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Problem using http post over j2me" Watch "Problem using http post over j2me" New topic
Author

Problem using http post over j2me

Dushyant Chhetri
Ranch Hand

Joined: Oct 28, 2009
Posts: 75
Hi Guys,
I am trying to use j2me client to post data to a servlet using Post type.
Now the problem is that I am able to hit the servlets doPost method, However the data sent over to https request is not being captured and every time I am getting null.

What I am doing is





However I am getting no data on the server side.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41034
    
  43
If the problem manifests itself on the server side, wouldn't it make more sense to post that code?

It looks like there's a "&" missing in front of "submit", and what's the "?" doing in front of "username"? POST data is not an URL.


Ping & DNS - my free Android networking tools app
Gopinath Karyadath
Ranch Hand

Joined: Oct 14, 2009
Posts: 87
Hi..
try with this .....





Regards

 
 
subject: Problem using http post over j2me
 
Similar Threads
HttpConnection and POST
how to send user credentials to a protected restful webservice
authenticating/validating user name and password
Problem in file transfer
Cell Phone Authentication with HTTP protocol