Pavel Alexeev
Pavel Alexeev

Reputation: 6081

j2me: Error opening stream - "java.io.IOException: -7334"

I am making HTTP connections to server to get some data. It works on most devices, but I'm getting this error on Sony Ericsson P1i.

I have found error description:

KErrHttpInvalidHeaderInRequest   -7334
Request contained a response header or a entity header but no body

Body should exists, I mean, data is not zero-length, and other devices with the same SIM-card and internet settings could get it in.

Upvotes: 1

Views: 1110

Answers (1)

Pavel Alexeev
Pavel Alexeev

Reputation: 6081

I've fixed it!

The problem was in request properties. I remove all these methods:

connection.setRequestProperty("...", "...");

and it works :)

Upvotes: 2

Related Questions