[Top][All Lists]

[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

From: Yousong Zhou
Subject: Re: [Bug-wget] [PATCH] Make wget capable of starting download from a specified position.
Date: Sun, 22 Dec 2013 23:27:11 +0800
User-agent: Mutt/1.5.20 (2009-06-14)

On Sat, Dec 21, 2013 at 11:05:01AM +0100, Dagobert Michelsen wrote:
> Hi,
> 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
>   http://<host>:<port>/<rest>
> 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 
> values
> 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.


reply via email to

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