Re: POST with no data

2002-09-17 Thread Doug MacEachern
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 @@

Re: POST with no data

2002-09-11 Thread Gary Benson
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

POST with no data

2002-09-10 Thread Gary Benson
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