Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic