[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [PATCH] Make wget capable of starting download from a spe
Re: [Bug-wget] [PATCH] Make wget capable of starting download from a specified position.
Sun, 22 Dec 2013 23:27:11 +0800
On Sat, Dec 21, 2013 at 11:05:01AM +0100, Dagobert Michelsen wrote:
> Am 21.12.2013 um 10:24 schrieb Yousong Zhou <address@hidden>:
> > In my situation, wget was trigger on the remote machine like the
> > following:
> > wget -O - --start-pos "$OFFSET" "$URL" | nc -lp 7193
> > Then on local machine, I would download with:
> > nc localhost 7193
> > Before these, a local forwarding tunnel has been setup with ssh to make
> > this possible. So in this case, there was no local file on the machine
> > where wget was triggerred and `--continue' will not work. I am sure
> > there are other cases `--start-pos' would be useful and that
> > `--start-pos' would make wget more complete.
> When I just look at your problem it seems to be easier to set up the tunnel
> slightly different and pull with standard wget. If the URL looks like
> and you set up the tunnel with
> ssh -L 7193:<host>:<port> <machine-where-you-called-wget-previously>
> and then just
> wget http://localhost:7193/<rest>
> the range requests would be sent by wget just fine to the initial server and
> you could also safely use -c on further wget invocations (or with proper
> for -t / -T automatically).
Just tried this approach. It did not work out as expected because HTTP
server responded with multiple levels of redirection thus host part were
changed on the fly. Anyway, thank you for you time.