• Post Reply Bookmark Topic Watch Topic
  • New Topic

POST data from Midlet through GPRS  RSS feed

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to every one.
I am developing mobile solution which sends some data to the RESIN server. The GET method run successfully, while post method fails on GPRS in NOKIA 3650.
Error I received is :
Invalid Content-Length 23,23. Where 23 is actual length posted by midlet.
While same code works with Fax & Data services. I think the wap gatway changes some headers of request.
I set Content-Length by setRequestProperty of HttpConnection.
Any idea to tackle with this error.
Looking for response & thanks in advance.
Used Phone : Nokia 3650
GPRS : Airtel
Fax & Data Services : Satyam
 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what content type are you setting, and what parameter type encoding are you using?
 
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter
https://coderanch.com/t/690611/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!