wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Can't read duplicate URLs from STDIN (#587)


From: @rockdaboot
Subject: Re: wget2 | Can't read duplicate URLs from STDIN (#587)
Date: Fri, 25 Feb 2022 14:55:09 +0000



Tim Rühsen commented:


Wget2 is intended to work this way to avoid redundant downloads.

So for your use case (downloading the same page again and again to stress test 
your server), we either have to add another CLI option, as you already suggest.

Or you think about a slightly different approach, like in
```
for i in $(seq 1 10); do ./wget2 --debug --no-http2 -O /dev/null 
http://127.0.0.1:4001/ping?$i; done
```
This assumes that your `ping` endpoint ignores query parameters.
The above throws away the response body, while `-O -` outputs it to the console.

Does this help you ?

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/issues/587#note_855575458
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]