bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] Truncated files ... --ignore-length bug ??


From: R.
Subject: Re: [Bug-wget] Truncated files ... --ignore-length bug ??
Date: Wed, 12 Aug 2015 09:02:55 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0

Thanks a lot: your answer pointed me in the right direction !!
(although it still does not work perfectly)

On 12/08/2015 04:53, Darshit Shah wrote:
Also, since curl too gives you the same problem, but Firefox does not, let me ask you one question, Did you load the same session cookies on Firefox too? Or did you authenticate and start a new session?
I did use a different session in firefox and wget.
I also tried to close my firefox session before starting the wget session just in case the server would not like two sessions under the same account at the same time.


Else, the HTTP Request and Response from Firefox could help in debugging too.

I have dumped the http transaction in firefox.
The server gives the right "content-length", not the "truncated" length that wget and curl get.
This log also indicates that firefox transmits one more cookie : has_js=1.
So I have added this cookie manually in my cookies.txt file and (tadaaa) now wget receives the correct content-length in the server response.

I can download one complete video with:
  wget --load-cookies cookies.txt http://www.site.com/path/video


So there is no bug in wget --ignore-length it was just a missing cookie.

Thanks a huge lot for your help.


Now I have to understand why wget will not download all videos when I create a list of links in a html file .. wget --load-cookies cookies.txt -i file.html "Invalid URL <a href="http://www.site.com/path/video";>foo</a>: missing scheme." Could it be because my video is actually named "video" without any extension ?

Thanks again



reply via email to

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