cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: sws bug

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 8 Aug 2003 19:24:54 +0200 (CEST)

On Fri, 8 Aug 2003, Gisle Vanem wrote:

> Silly me, the piping should be reversed. This seems to work for ActivePerl:
> perl -e "print qq(127.0.0.1:8999/); print qq(a) x 10000; print qq(/22);" |
> curl -v --data - -G
>
> But then curl complains:
> curl: no URL specified!

Yes, because the original command line doesn't use a pipe, it uses
"backticks", that works like this:

original string: first `command` later

becomes: first outputfromthecommand later

I don't know enough windows details to tell if this is at all possible to do
there. An alternative approach would be to change this test command line to
instead generate a config file using this huge URL and then call curl to use
that command line.

PS great catch on that sws bug!

-- 
 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/01
Received on 2003-08-08