bugGNU Wget - Bugs: bug #21041, Content-Disposition ignored in...

 
 

bug #21041: Content-Disposition ignored in GET, if HEAD failed.

Submitter:  None
Submitted:  Wed 12 Sep 2007 01:42:21 AM UTC
   
 
Category:  Program Logic Severity:  4 - Important
Priority:  7 - High Status:  Awaiting Approval
Privacy:  Public Assigned to:  zouxin
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  Open Release:  trunk
Operating System:  Microsoft Windows Reproducibility:  Every Time
Fixed Release:  None Planned Release:  1.13
Regression:  None Work Required:  2 - Weeks
Patch Included:  Yes
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Fri 23 Jan 2009 11:26:27 AM UTC, comment #8: 

After investigating source code and output file provided by goul_dukat, I find this bug is due to 5xx error.

Patch is attached, I have tested it and it works ok.

(file #17308)

Xin Zou <zouxin>
Mon 01 Oct 2007 05:06:35 AM UTC, comment #7: 

It looks to me like this is going to take more work, and serious restructuring of parts of gethttp, then I am willing to do for an impending release. Punting for 1.12. Content-Disposition support in Wget 1.11 will be considered experimental only.

We'll look at this at the same time we spend time thinking about how HEAD/GET stuff should work.

Micah Cowan <micahcowan>
Thu 27 Sep 2007 05:37:04 PM UTC, comment #6: 

dunno if i can use this for chit-chat, but yes it comes from ds9 ( but i used it so early on my life and make some mistake on writing, so atm it reflect perfectly me :-p ) the right is Gul dukat.

goul_dukat
Wed 26 Sep 2007 06:53:23 PM UTC, comment #5: 

Thanks very much, Dukat (that's a ST:DS9 reference, no? :) ).

Judging by the transcript, it looks to be the same issue as bug 20360: Wget doesn't use the content-disposition header from GET if HEAD fails. I thought this was supposed to have been fixed, but I haven't personally tested it.

Rather than mark this as a duplicate of 20360, I think I'll track this specific issue using this bug, and use the other bug to track the connection-close-treated-as-failure issue (there were two issues for that report).

I'm updating the summary to reflect the issue.

Micah Cowan <micahcowan>
Wed 26 Sep 2007 05:53:54 PM UTC, comment #4: 

btw to test this is so easy to replicate use firefox + flashgot(extension) + wget, and you can easy do this test yourself building up a right referrer/cookie/sid ;-)

svn version : 2383

debug output on attached file !

command line :
wget.exe --debug -e contentdispositio
n=on -S -N -t0 -T120 -w5 -c --retry-connrefused --directory-prefix="xxx" --referer="http://files.filefront.com/EurokartIC
AV13rar/;7070334;/fileinfo.html" --load-cookies="xxx\cookies.txt" --header
="Cookie:FF_SESSION_ID=xxx; " --input-file="xxx\flashgot-3.fgt" > out.txt 2>
&1


(file #14031, file #14032)

goul_dukat
Tue 25 Sep 2007 07:18:43 PM UTC, comment #3: 

I can't try to download first, since, as you said you cannot provide a direct link.

As suggested on the bug submission page, please provide as much detailed information as possible. This includes the output of wget when run with the --debug flag.

Please do use the latest development version; there is nothing I can do about a bug in the latest release if it's been fixed in the current development version! Anyway, as mentioned, content-disposition is only supported in the development version, not in the released version.

Micah Cowan <micahcowan>
Tue 25 Sep 2007 06:41:49 PM UTC, comment #2: 

plz reopen this, because i used the "-e content_disposition=on" its not working on that server !

try to download that first of close this !

goul_dukat
Mon 24 Sep 2007 10:29:33 PM UTC, comment #1: 

In order to enable the content-disposition stuff, you currently need to specify "-e content_disposition=on" in your command-line invocation. Of course, this only works with the current development version of Wget; the official releases did not have content-disposition support.

Micah Cowan <micahcowan>
Wed 12 Sep 2007 01:42:21 AM UTC, original submission:  

if you try to download this file

http://files.filefront.com//;7070334;;/

or other file on filefront you're capable to download it but it's named X6 instead of the content disposition field name.

to been capable of download the file you need a right referrer and cookie so i'm incapable to post a direct link to the file.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #17308:  patch21041.diff added by zouxin (852B - application/octet-stream)
file #14031:  flashgot-3.fgt added by goul_dukat (123B - application/octet-stream)
file #14032:  out.txt added by goul_dukat (6KiB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by zouxin (Updated the item)
  • -email is unavailable- added by goul_dukat (Posted a comment)
  • -email is unavailable- added by micahcowan (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    Follow 22 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2009-10-09 micahcowan StatusConfirmed Awaiting Approval
        Patch IncludedNone Yes
    2009-10-09 micahcowan Planned Release1.14 1.13
    2009-01-23 zouxin Attached File- Added patch21041.diff, #17308
    2009-01-16 micahcowan Assigned toNone zouxin
    2008-08-21 micahcowan Planned Release1.12 1.14
    2007-10-01 micahcowan Work Required0 - Hours 2 - Weeks
    2007-10-01 micahcowan Priority6 7 - High
        Planned Release1.11 1.12
    2007-09-26 micahcowan Work RequiredNone 0 - Hours
    2007-09-26 micahcowan Severity3 - Normal 4 - Important
        Priority5 - Normal 6
    2007-09-26 micahcowan StatusNeeds Discussion Confirmed
        Open/ClosedClosed Open
        Planned Release1.12 1.11
        SummaryIgnoring the content disposition on filefront download Content-Disposition ignored in GET, if HEAD failed.
    2007-09-26 goul_dukat Attached File- Added flashgot-3.fgt, #14031
        Attached File- Added out.txt, #14032
    2007-09-25 micahcowan StatusInvalid Needs Discussion
        Planned ReleaseNone 1.12
    2007-09-24 micahcowan Open/ClosedOpen Closed
    2007-09-24 micahcowan StatusNone Invalid

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code