velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryce Nesbitt <bry...@obviously.com>
Subject Re: Fairly simple page returns wrong Content-Length in HTTP headers
Date Fri, 16 Dec 2005 19:56:02 GMT
The following very simple .html file is enough to trigger the issue I'm
seeing:

-----------------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

#macro( screwthingsupmacro $values )
    <p>I cause the Content-Length: header to be wrong!</p>
#end

<html>
<head>
    <title>Individual Member Application</title>
</head>
<body>
<form action="signup.action" method="POST">
</form>
</body>
</html>
-----------------------------------------------

host> wget --save-headers http://localhost:8080/exploded/signup/e_test.html

HTTP request sent, awaiting response... 200 OK
Length: 350 [text/html]
71% [=========================>           ] 249           --.--K/s   
ETA 00:02
Connection closed at byte 249. Retrying.



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Mime
View raw message