Mark Bucciarelli wrote: > > I am having trouble wgetting a samsung printer driver from their site. Every > time I try, I immediately get an HTTP/1.1 500 Internal Server Error. The > web browser initiates the download properly when I click on the link from the > referer page. > > Here is the command I am running (I don't have a .wgetrc): > > wget --debug > >--referer="http://www.samsungelectronics.com/printer/support/downloads/400329_844_file4.html" > >"http://211.45.27.253/servlet/Downloader?path=%2Fprinter%2Fsupport%2Fdownloads%2Fattach_file%2F20020516175051spp-1.0.2.i386.tar.gz&realname=spp-1.0.2.i386.tar.gz" > > and here is the debug output: <debug output skipped/>
This seems to be yet another encoding problem. I have no problem if I change the '&' to '&'. IIRC URLs found in a HTML page should be HTML decoded. A simple test (wget -F -i URL.html) shows that wget does this. But I'm not sure wget should do it for URLs on the cmd line or in a non-HTML file. In the past we had a lot of problems with wget being overzealously {en|de}coding URLs. $ wget "http://211.45.27.253/servlet/Downloader?path=%2Fprinter%2Fsupport%2Fdownloads%2Fattach_file%2F20020516175051spp-1.0.2.i386.tar.gz&realname=spp-1.0.2.i386.tar.gz" --15:20:35-- http://211.45.27.253/servlet/Downloader?path=%2Fprinter%2Fsupport%2Fdownloads%2Fattach_file%2F20020516175051spp-1.0.2.i386.tar.gz&realname=spp-1.0.2.i386.tar.gz => `Downloader@path=%2Fprinter%2Fsupport%2Fdownloads%2Fattach_file%2F20020516175051spp-1.0.2.i386.tar.gz&realname=spp-1.0.2.i386.tar.gz' Connecting to 211.45.27.253:80... connected. HTTP request sent, awaiting response... 200 OK Length: 28,864,218 [application/octet-stream] Last-modified header missing -- time-stamps turned off. --15:20:36-- http://211.45.27.253/servlet/Downloader?path=%2Fprinter%2Fsupport%2Fdownloads%2Fattach_file%2F20020516175051spp-1.0.2.i386.tar.gz&realname=spp-1.0.2.i386.tar.gz => `Downloader@path=%2Fprinter%2Fsupport%2Fdownloads%2Fattach_file%2F20020516175051spp-1.0.2.i386.tar.gz&realname=spp-1.0.2.i386.tar.gz' Connecting to 211.45.27.253:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [application/octet-stream] [ <=> ] 1,257,472 25.53K/s > Thanks for a great tool! And thank you for reading the instructions and actually including debug output ! > > Mark -- Med venlig hilsen / Kind regards Hack Kampbjørn