Re: wget inability of downloading certain files

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

 



tlc wrote:

>>Oh... and you have to quote the URL too, as I showed in the cut and
>>paste, since it has & in it...
> 
> wget doesn't need "" , lynx does but I use wget all the time with &s in
> it and don't use "" .. I used the actual download link, and I still get
> an html page not the intended file. 
> 
> I assume this is the same problem he is having.

Yes.. he can easily have the same wrong idea that you do about bash and
the need for quoting, thus causing unexpected behaviour.

$ wget -Otempfile http://yah.warmcat.com/index.php?&param=1

        0x0030:  581e f565 4745 5420 2f69 6e64 6578 2e70  X..eGET./index.p
        0x0040:  6870 3f20 4854 5450 2f31 2e30 0d0a 5573  hp?.HTTP/1.0..Us
        0x0050:  6572 2d41 6765 6e74 3a20 5767 6574 2f31  er-Agent:.Wget/1
        0x0060:  2e31 302e 3220 2852 6564 2048 6174 206d  .10.2.(Red.Hat.m
        0x0070:  6f64 6966 6965 6429 0d0a 4163 6365 7074  odified)..Accept
        0x0080:  3a20 2a2f 2a0d 0a48 6f73 743a 2079 6168  :.*/*..Host:.yah
        0x0090:  2e77 6172 6d63 6174 2e63 6f6d 0d0a 436f  .warmcat.com..Co
        0x00a0:  6e6e 6563 7469 6f6e 3a20 4b65 6570 2d41  nnection:.Keep-A
        0x00b0:  6c69 7665 0d0a 0d0a                      live....

$ wget -Otempfile "http://yah.warmcat.com/index.php?&param=1";

       0x0030:  581e e094 4745 5420 2f69 6e64 6578 2e70  X...GET./index.p
        0x0040:  6870 3f26 7061 7261 6d3d 3120 4854 5450  hp?&param=1.HTTP
        0x0050:  2f31 2e30 0d0a 5573 6572 2d41 6765 6e74  /1.0..User-Agent
        0x0060:  3a20 5767 6574 2f31 2e31 302e 3220 2852  :.Wget/1.10.2.(R
        0x0070:  6564 2048 6174 206d 6f64 6966 6965 6429  ed.Hat.modified)
        0x0080:  0d0a 4163 6365 7074 3a20 2a2f 2a0d 0a48  ..Accept:.*/*..H
        0x0090:  6f73 743a 2079 6168 2e77 6172 6d63 6174  ost:.yah.warmcat
        0x00a0:  2e63 6f6d 0d0a 436f 6e6e 6563 7469 6f6e  .com..Connection
        0x00b0:  3a20 4b65 6570 2d41 6c69 7665 0d0a 0d0a  :.Keep-Alive....


-Andy

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux