bugGNU Wget - Bugs: bug #34230, [wget-1.13*] "-N -c"...

 
 

bug #34230: [wget-1.13*] "-N -c" doesn't work together on HTTP protocol

Submitted by:  Natrio <natrio>
Submitted on:  Wed 07 Sep 2011 07:07:48 AM UTC  
 
Category: Program LogicSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Giuseppe Scrivano <gscrivano>
Originator Name: Open/Closed: Closed
Release: NoneOperating System: GNU/Linux
Reproducibility: Every TimeFixed Release: None
Planned Release: 1.13.4Regression: Yes
Work Required: NonePatch Included: No

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 07 Sep 2011 11:35:13 AM UTC, comment #2:

Yes, it works.
Thank you!

Natrio <natrio>
Wed 07 Sep 2011 10:59:52 AM UTC, comment #1:

I am going to commit this patch:

Can you please help me with testing? Does it solve your case?

Thanks

=== modified file 'src/http.c'
--- src/http.c 2011-08-18 13:17:20 +0000
+++ src/http.c 2011-09-07 10:51:58 +0000
@@ -1626,7 +1626,7 @@
/* ... but some HTTP/1.0 caches doesn't implement Cache-Control. */
request_set_header (req, "Pragma", "no-cache", rel_none);
}
- if (hs->restval && !opt.timestamping)
+ if (hs->restval)
request_set_header (req, "Range",
aprintf ("bytes=%s-",
number_to_static_string (hs->restval)),

Giuseppe Scrivano <gscrivano>
Project AdministratorIn charge of this item.
Wed 07 Sep 2011 07:07:48 AM UTC, original submission:

Wget doesn't request the HTTP "Partial content" downloading if the option -N (--timestamping) is specified, and starts every time from the beginning.
Confirmed in versions 1.13 - 1.13.3
Version 1.12.7 works correctly.

Steps to reproduce:
$ wget -SN -c http://some.server/some.file
......
Ctrl+C
$ wget -SN -c http://some.server/some.file

Natrio <natrio>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gscrivano (Posted a comment)
  • -unavailable- added by natrio (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 07 Sep 2011 10:59:52 AM UTCgscrivanoStatusNone=>Fixed
      Assigned toNone=>gscrivano
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>1.13.4

    Back to the top


    Powered by Savane 3.1-cleanup1