• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Malformed or illegal request in HttpConnection !!

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ??? (
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
please buy my thing and then I'll have more money:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic