• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Malformed or illegal request in HttpConnection !!

 
Van Vu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

I am writing a midlet that connect to IP camera and displaying live images from it. The midlet work fine in emulator, when I connect to my local ip cam with local ip. But when I put my midlet to Sony Erisson mobile, midlet connected to ip cam, the status is 200, but the ip cam response: error page! internal error in API.

Then, I tried in emulator to connect to some ip camera with global ip, however, the emultor always said: status 400(meant malformed or illegal request). Although I can use my web browser to open that global IP. The address I tried to connect to is: http://212.54.50.234:90.

Does anyone have some idea about this problem, please help me.

Thank you very much
 
Van Vu
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And I want to make it a bit clearer:
1. With emulator, the IP camera responses: 400 -->malformed or illegal request although I can open the URL in web browser.
2. With real device: the IP camera responses: 200, but the response come after is: error page, internal erro in API.

The URL I tried to access is something like this: http://212.54.50.234:90/axis-cgi/mjpg/video.cgi. This is valid URL, why it does not work ??? (
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It can be a matter of port number restrictions on the API side.
Have you tried more "standard" ports in place of 90, eg 8080, 80?
Regards
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic