Error 400 - Bad request

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
THD
-


Joined: 27 Jan 2004
Posts: 8

PostPosted: Tue Jan 27, 2004 3:09 pm    Post subject: Error 400 - Bad request Reply with quote

I've browsed around and it seems that some other people get errors like this too... but this situation seems different, the request is sent from a DVD player running some Linux variant, and from as far as I can tell it is perfectly right...

The request that is sent to the server is:
Quote:
GET http://192.168.1.2/index.php?PlayerID=xxx&PlayerBrand=KiSS&PlayerModel=DP-500&PlayerLanguage=0&PlayerFirmware=281 HTTP/1.0
Connection:Close


The URL is just a local network server and that data is some info about the DVD player. My guess is that the the Connection:Close isn't the problem (cuz the Connection: Keep-alive works fine)... But I think that the full request is the problem, because the request of /index.php works fine...

Why doesn't the server support this kind of request... or is there some option that can be set in the config somewhere to enable it, or make the server process requests it doesn't completely understand anyway... :?:
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jan 28, 2004 3:15 pm    Post subject: Re: Error 400 - Bad request Reply with quote

THD,

The request
Quote:
GET http://192.168.1.2/index.php?PlayerID=xxx&PlayerBrand=KiSS&PlayerModel=DP-500&PlayerLanguage=0&PlayerFirmware=281 HTTP/1.0
Connection:Close


isn't accepted by Abyss because it contains a full URL and not a relative URL. Full URLs are recognized by HTTP proxies only. Web servers should only accept relative URLs (starting with /).
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
THD
-


Joined: 27 Jan 2004
Posts: 8

PostPosted: Wed Jan 28, 2004 5:13 pm    Post subject: Reply with quote

hmm... but the majority of servers does accept it, and it would be a nice extra feature to add to this server too...

(and isn't it so that servers use this full URL to determine what domain it is that needs to be served when there are more than one domain on that server?)
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jan 28, 2004 5:41 pm    Post subject: Reply with quote

THD wrote:
hmm... but the majority of servers does accept it, and it would be a nice extra feature to add to this server too...

(and isn't it so that servers use this full URL to determine what domain it is that needs to be served when there are more than one domain on that server?)

Multiple domains do not rely on the full URL. They rely on an additional header (Host).
Other servers that support this feature simply discard the server part in the URL. This isn't recommended by the HTTP protocol.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
THD
-


Joined: 27 Jan 2004
Posts: 8

PostPosted: Wed Jan 28, 2004 6:10 pm    Post subject: Reply with quote

hmmm... but it's too bad that this server doesn't do that... I liked it a lot and used it very often, but now I have to use Apache (also good, but much bigger ;) ) for the development for that DVD player...
Back to top View user's profile Send private message
odbc3
-


Joined: 24 Feb 2004
Posts: 1
Location: London UK

PostPosted: Mon Jun 14, 2004 2:32 pm    Post subject: Reply with quote

It seems I am 6 months behind THD in finding out the DVD player does not want to talk to the Abyss/1.2.2.2 server.

I independantly concluded it doesnt like the http://192.168.x.x part by calling the server with telnet and doing a GET with and without the host IP.

I like the server too. It is a shame that it is so strict on the type of url accepted.

What still remains to be done for the server if you dont want to accept this url is to actually report it as an error! I cant find any record in the status or the log that the request had occured. It was only after THD suggested I trace the packets that I found the server was handing over an Error 400 page but not logging the error.

I would of course like the Abyss to strip off the http and IP part. It cant be a security risk as there is no way the code would arrive at the server if the IP was not that of the server anyway. And you wont be lured into using any other IP as you are discarding it anyway.

I'll double check that you have not got a work around in any newer version since 1.2.2.2. I too will have to go to Apache if I cant get the client machine supported by your server.
:(

Odbc3
Back to top View user's profile Send private message Send e-mail AIM Address Yahoo Messenger ICQ Number
TRUSTAbyss
-


Joined: 29 Oct 2003
Posts: 3752
Location: USA, GA

PostPosted: Mon Jun 14, 2004 8:31 pm    Post subject: Reply with quote

Abyss logs full URL's , if their Referers but if their from a
Get request , they aren't full because that can lead to
possible security problems and thats kind of stupid
to include that feature. I don't recommend it !

Note: 400 Errors are usually from an exploit
or someone trying to hack into your server.
Back to top View user's profile Send private message Visit poster's website
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Jun 15, 2004 1:19 pm    Post subject: Reply with quote

odbc3,

This modification hasn't been added to 1.2 but it will be available in version 2.0. Anyway, contact us and we'll manage to find you a workaround.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
THD
-


Joined: 27 Jan 2004
Posts: 8

PostPosted: Tue Jun 15, 2004 1:24 pm    Post subject: Reply with quote

ooh... nice... we'll be waiting inpatiently for version 2 then :) but how will the server support requests like this? per default? or will you have to check an option to make it work?
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Tue Jun 15, 2004 3:47 pm    Post subject: Reply with quote

I'd expect it as an option, since the reason it doesn't accept the GET requests is to comply with the RFC on HTTP 1.1 requests.

Wouldn't a quick workaround have been to just put a simple proxy application between Abyss and the player to fix the requests ?
Back to top View user's profile Send private message
THD
-


Joined: 27 Jan 2004
Posts: 8

PostPosted: Tue Jun 15, 2004 4:06 pm    Post subject: Reply with quote

well.. it might have been an option yeah... but it was the choice to either search for a proxy that translates the request right, install it, and keep both the server and the proxy running... or just run Apache :) ... the choice seems obvious to me ;)
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group