curl-users
Re: sws bug
Date: Sun, 10 Aug 2003 18:40:56 +0200 (CEST)
On Fri, 8 Aug 2003, Gisle Vanem wrote:
> Okay, but how do we make runtests.pl call system() with this:
> perl -e "print qq(url = http://127.0.0.1:8999/); print qq(a) x 10000; print qq(/22);" | curl -v -K -
>
> which should work for all shells (maybe replacing " with ').
>
> Can't use <tool></tool> because the script looks in ./libtest
> for programs.
I suggest we add support for a new section, something like <precmd></precmd>
to contain a perl-statement that we run (if existing) before the test is
executed.
It would then in this case look something like:
<precmd>
my $url = "http://%HOSTIP:%HOSTPORT/".(a x 1000)."/22";
open(FILE, ">log/dump");
print FILE "url = $url\n";
close(FILE)
</precmd>
And the <command> line would then use '-K log/dump' to use this URL.
-- Daniel Stenberg -- curl: been grokking URLs since 1998 ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01Received on 2003-08-10