Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Content-Length in Nokia 6230

 
Daniel Gazineu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I�m trying to use the Nokia 6230 to run one application, but ocours the error 411. This is my code:

c = (HttpConnection) Connector.open(_url, Connector.READ_WRITE, false);
c.setRequestMethod(HttpConnection.POST);
c.setRequestProperty("Content-Length", Integer.toString((_data != null)?_data.length():0));
if (_data != null && _data.length() > 0) {
out = c.openOutputStream();
out.write(_data.getBytes());
}
int resp = c.getResponseCode();


Thanks for any help and sorry by my terrible english

Daniel Gazineu
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!