Forum Moderators: phranque

Message Too Old, No Replies

Bad http 1.1 request

         

ziotibia81

12:04 pm on Mar 27, 2006 (gmt 0)

10+ Year Member



I have this problem:

An industrial equipment is connected to the network and retrieve a configuraiton file with a http request.
I've installed on a linux server and apache 2.0.53.

The Equipment do this request:

GET /netconf01.xml HTTP/1.1

and Apache reply:

HTTP/1.1 400 Bad Request

error_log is:

client sent HTTP/1.1 request without hostname (see RFC2616 section 14. 23): /netconf01.xml

This is a 1.0 request and not a 1.1 but i can't change request string in this Equipement. How I can solve this? There are some paticular directive in apache configuration file?

jdMorgan

2:10 pm on Mar 27, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ziotibia81,

Welcome to WebmasterWorld!

The equipment must send either:

GET /netconf01.xml HTTP/1.1
Host: www.example.com

-or-
GET /netconf01.xml HTTP/1.0


I'd suggest you conatct the equipment maker to get this corrected.

Jim

ziotibia81

7:34 am on Mar 28, 2006 (gmt 0)

10+ Year Member



Thanks! :)

The problem is thet I can't ask equipment maker for correct this error beacuse hi tell that this equipement work only if using his configurator engine software...

So I can do 2 things:

1) To Spend a lot of money and buy configuraotr engine
2) Solve this in httpd.conf

I'm thinking to install another webserver, configure it for listening on another port that 80 and using iptables redirect all request of equipment IP from port 80 to the port of the other webserver.

jadebox

8:21 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



I'm not sure it'll solve your problem, but Apache's downgrade-1.0 and force-response-1.0 options may help. See:

[httpd.apache.org...]

If I understand the docs correctly, downgrade-1.0 will make Apache see the equipment's request as an HTTP 1.0 request which doesn't require the host to be specified. That may be enough to make it work. Otherwise, the force-response-1.0 option can be added to force Apache to respond using the HTTP 1.0 protocol.

-- Roger

ziotibia81

10:04 pm on Mar 28, 2006 (gmt 0)

10+ Year Member



I try this but without success. Example are only for BrowserMatch (And in this case I can't use this directive). I try to insert dirtecly in the config PassEnv and also SetEnv but don't work. I think it's my error in httpd.conf but I don't understand how I have to insert downgrade-1.0 in httpd.conf whitout using BrowserMatc directive.