Win a copy of Reactive Design Patterns this week in the Functional Programming forum
or Learn Linux in a Month of Lunches in the Linux 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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!