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
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.READ_WRITE, false);
c.setRequestProperty("Content-Length", Integer.toString((_data != null)?_data.length():0));
if (_data != null && _data.length() > 0) {
out = c.openOutputStream();
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!