Web Servers on Unix and Linux - Client sent malformed Host header

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > June 2004 > Client sent malformed Host header





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Client sent malformed Host header
Si

2004-03-18, 2:05 pm

Hi,

Forgive me if this is a simple question but I am new to this, I have apache
running on one of the computers on my home network, I have port forwarding
set up, it works fine inside my network, but not outside,

Someone suggested I tried using
http://www.psi-rho.com/dsltools/test.php?type=www to test the connection,
its reporting port 80 open and the error message shown at the end of this
post. The apache error log shows "Client sent malformed Host header"

Any suggestions to what my problem is would be greatfully received.

Cheers Si,


Error Message...........

HTTP/1.1 400 Bad Request
Date: Fri, 12 Mar 2004 20:52:46 GMT
Server: Apache/2.0.48 (Win32) PHP/4.3.4
Content-Length: 313
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
</p>
<hr />
<address>Apache/2.0.48 (Win32) PHP/4.3.4 Server at 10.0.0.202 Port
80</address>
</body></html>
Owen Jacobson

2004-03-18, 2:05 pm

On Fri, 12 Mar 2004 21:01:15 +0000, Si wrote:

> Hi,
>
> Forgive me if this is a simple question but I am new to this, I have apache
> running on one of the computers on my home network, I have port forwarding
> set up, it works fine inside my network, but not outside,
>
> Someone suggested I tried using
> http://www.psi-rho.com/dsltools/test.php?type=www to test the connection,
> its reporting port 80 open and the error message shown at the end of this
> post. The apache error log shows "Client sent malformed Host header"
>
> Any suggestions to what my problem is would be greatfully received.
>
> Error Message...........

<snip>

Without the client's half of the transaction, particularly the Host:
header, it will be very hard to diagnose this.

--
Some say the Wired doesn't have political borders like the real world,
but there are far too many nonsense-spouting anarchists or idiots who
think that pranks are a revolution.

Si

2004-03-18, 2:05 pm

On Sat, 13 Mar 2004 04:02:25 GMT, Owen Jacobson wrote:

> On Fri, 12 Mar 2004 21:01:15 +0000, Si wrote:
>
> <snip>
>
> Without the client's half of the transaction, particularly the Host:
> header, it will be very hard to diagnose this.


How do I do this (as I said before I'm new to this).
The address is http://81.152.33.78

Cheers Si,
alex

2004-06-24, 10:45 pm

quote:
Originally posted by Si
On Sat, 13 Mar 2004 04:02:25 GMT, Owen Jacobson wrote:

> On Fri, 12 Mar 2004 21:01:15 +0000, Si wrote:
>
> <snip>
>
> Without the client's half of the transaction, particularly the Host:
> header, it will be very hard to diagnose this.


How do I do this (as I said before I'm new to this).
The address is http://81.152.33.78

Cheers Si,



OK, that's wrong. only "host: name:port" is allowed (name can also be IP). Check the following link:
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html for the official w3c format.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com