httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject libwww-perl 5.800 failures
Date Wed, 04 Aug 2004 14:44:32 GMT
hi all...

I just upgraded to libwww-perl 5.800 and found that a few POST tests started
failing where they didn't before, namely t/apache/post.t and t/http11/post.t.

I think the underlying problem is this change in HTTP::Message:

    HTTP::Message will now allow an external 'content_ref'
    to be set.  This can for instance be used to let HTTP::Request
    objects pick up content data from some scalar variable without
    having to copy it.

which I think means that you can no longer set

  my $content = sub {...};
  $request->content($content);

as we do in Apache::TestCommonPost::lwp_do().  I didn't write that code and
am having a hard time following it, but I assume that the coderef assumed
LWP would call the coderef until the C-L was fulfilled, which seems to no
longer be true.

so, if anyone is familiar with how TestCommonPost works and what it is
testing, it would be really helpful if you could explain why the buffering
in lwp_do is required and why we can't just set $response->content to the
C-L size up front.

--Geoff

Mime
View raw message