aspose file tools*
The moose likes Java Micro Edition and the fly likes Malformed or illegal request in HttpConnection !! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Malformed or illegal request in HttpConnection !!" Watch "Malformed or illegal request in HttpConnection !!" New topic
Author

Malformed or illegal request in HttpConnection !!

Van Vu
Greenhorn

Joined: Oct 13, 2006
Posts: 15
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

Joined: Oct 13, 2006
Posts: 15
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

Joined: Feb 19, 2005
Posts: 231
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


Eduardo Marques
Get ready for your SCMAD certification at J2MECertificate.com - See what all the buzz is about ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Malformed or illegal request in HttpConnection !!