i think lwp does the right thing, but TestRequest.pm does not.
patch below should fix (untested).
--- Apache-Test/lib/Apache/TestRequest.pm 4 Apr 2002 00:54:26 - 1.71
+++ Apache-Test/lib/Apache/TestRequest.pm 17 Sep 2002 20:22:38 -
@@ -251,7 +251,7 @@
On Tue, Sep 10, 2002 at 05:55:27PM +0100, Gary Benson wrote:
I've been trying to write some tests and have been trying to send POST
requests with no body. It seems that Apache::TestRequest::POST only
adds a Content-Length when the length of the content is nonzero, so
attempts to 'POST
Hi all,
I've been trying to write some tests and have been trying to send POST
requests with no body. It seems that Apache::TestRequest::POST only
adds a Content-Length when the length of the content is nonzero, so
attempts to 'POST /foo/bar, ' result in a 411 Length Required from
httpd.
I'm