[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: wget2 | Interrupted downloads do not continue when wget2 is rerun (#
From: |
Tim Rühsen |
Subject: |
Re: wget2 | Interrupted downloads do not continue when wget2 is rerun (#447) |
Date: |
Wed, 29 Jan 2020 13:54:36 +0000 |
Tim Rühsen commented:
I guess the (original) point here is that we misinterpret the 304 response when
working with --continue.
If response code is 304:
- re-send the request without If-modified-since
That means, in your test the server needs to answer with 304 if the request has
the If-Modified-Since header. The second request *must not* have a
If-Modified-Since.
So you need an extension to modify the wget_test_url_t after the before the
second request.
One flexible option would be to add a pre-request-callback, so that you can
give a function that modifies the wget_test_url_t data (just a
not-much-thought-of idea).
--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/issues/447#note_278794206
You're receiving this email because of your account on gitlab.com.