Weird error when Downloading a rom

Having a problem downloading or using a ROM. Place your questions here.

Weird error when Downloading a rom

Postby punkydudester » Sun Jun 10, 2012 10:17 am

When I try to download The Crow for the Sega Saturn - this is the error I get below:

Duplicate headers received from server
The response from the server contained duplicate headers. This problem is generally the result of a misconfigured website or proxy. Only the website or proxy administrator can fix this issue.
Error 349 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION): Multiple distinct Content-Disposition headers received. This is disallowed to protect against HTTP response splitting attacks.
User avatar
punkydudester
Unlimited Member
Unlimited Member
Next LVL Up at : 35
Next LVL Up at : 35
 
Posts: 30
Joined: Mon Oct 18, 2010 5:49 am
Location: Salt Lake City, Utah
Has thanked: 24 times
Been thanked: 12 times
Fav System: Nintendo Wii

Re: Weird error when Downloading a rom

Postby te_lanus » Sun Jun 10, 2012 10:27 am

Yip. I can confirm this one. No problem with the rest I tried
Image
User avatar
te_lanus
Unlimited Member
Unlimited Member
Next LVL Up at : 670
Next LVL Up at : 670
 
Posts: 648
Joined: Mon Aug 23, 2010 4:02 pm
Has thanked: 111 times
Been thanked: 315 times
Fav System: Everything 1980-2000

Re: Weird error when Downloading a rom

Postby Hot Trout » Mon Jun 11, 2012 1:02 pm

Not a problem, I have uploaded the rom again and hopefully now it will work. I can confirm that it works locally for me with no problems.
Webmaster, Admin, Amiga Fan, Retro Gamer and Collector
Image
Image

Image
Click the banner to Join us on Discord
User avatar
Hot Trout
Unlimited Member
Unlimited Member
Next LVL Up at : 3650
Next LVL Up at : 3650
 
Posts: 3647
Joined: Mon Feb 01, 2010 6:42 pm
Location: UK
Has thanked: 2233 times
Been thanked: 1955 times
Fav System: Amiga
Steam ID: hot_trout

Re: Weird error when Downloading a rom

Postby punkydudester » Wed Aug 08, 2012 12:47 pm

I have come accross a few more in the Sega Saturn Roms: Horde, House of the Dead, & Incredible Hulk. Also The Crow is still getting the same error. :? What else could be causing this error? :freakout: I have not had this from the rest of the rom sections. :problem:
User avatar
punkydudester
Unlimited Member
Unlimited Member
Next LVL Up at : 35
Next LVL Up at : 35
 
Posts: 30
Joined: Mon Oct 18, 2010 5:49 am
Location: Salt Lake City, Utah
Has thanked: 24 times
Been thanked: 12 times
Fav System: Nintendo Wii

Re: Weird error when Downloading a rom

Postby void* » Wed Aug 29, 2012 3:42 pm

Hi,

I recently have the same problem but only with Google Chrome. It worked fine with Mozilla Firefox. Which browser are you guys using? Have you tried using another browser?

During my research why this problem only occures with Chrome I found out that each rom I couldn't download had a comma in the filename which seems to cause this problem.
User avatar
void*
Unlimited Member
Unlimited Member
Next LVL Up at : 10
Next LVL Up at : 10
 
Posts: 7
Joined: Thu Apr 12, 2012 2:58 pm
Has thanked: 0 time
Been thanked: 4 times
Fav System: NES, SNES, SMD, SMS

Re: Weird error when Downloading a rom

Postby Kherr » Fri Aug 31, 2012 9:00 am

You know what, that's a very good point. Something about those commas. HT, didn't you say that breaks the links on here?
Image
Image
Image
Image
User avatar
Kherr
Site Admin
Site Admin
Next LVL Up at : 1800
Next LVL Up at : 1800
 
Posts: 1776
Joined: Wed Feb 03, 2010 4:19 pm
Location: Detriot, MI, USA
Has thanked: 617 times
Been thanked: 564 times
Fav System: PC/NES/SNES/Genesis
Steam ID: DAKherr

Re: Weird error when Downloading a rom

Postby Hot Trout » Fri Aug 31, 2012 9:02 am

Unfortunately some of the many thousands of roms available on here have got commas, quotes, ampersands etc and sometimes browsers see these incorrectly. I have made as many amendments to the htaccess file as is possible to help this.
Webmaster, Admin, Amiga Fan, Retro Gamer and Collector
Image
Image

Image
Click the banner to Join us on Discord
User avatar
Hot Trout
Unlimited Member
Unlimited Member
Next LVL Up at : 3650
Next LVL Up at : 3650
 
Posts: 3647
Joined: Mon Feb 01, 2010 6:42 pm
Location: UK
Has thanked: 2233 times
Been thanked: 1955 times
Fav System: Amiga
Steam ID: hot_trout

Re: Weird error when Downloading a rom

Postby void* » Tue Sep 04, 2012 10:41 pm

Well the problem is only caused by the comma. I tested it with some roms that contain quotes, etc. It worked fine with all of them. According to RFC1806 the content-dispositon header can contain every US-ASCII character. This would include the comma too.

I do not want to analyse the header that is sent when the download should be started but HT did you try to put the filename in double quotes (e.g. "game,xyz.zip")? This can probably solve the problem. For more detail you can also read RFC2231.
User avatar
void*
Unlimited Member
Unlimited Member
Next LVL Up at : 10
Next LVL Up at : 10
 
Posts: 7
Joined: Thu Apr 12, 2012 2:58 pm
Has thanked: 0 time
Been thanked: 4 times
Fav System: NES, SNES, SMD, SMS

Re: Weird error when Downloading a rom

Postby PMJPlay » Sat Sep 15, 2012 1:23 pm

Well I have done some testing and it seems to be only Google Chrome that has problems downloading roms off the site. So for now I recommend using Firefox, Opera and IE if you are having problems downloading roms :D
User avatar
PMJPlay
Curator
Curator
Next LVL Up at : 1250
Next LVL Up at : 1250
 
Posts: 1240
Joined: Thu Feb 16, 2012 9:25 am
Location: Australia
Has thanked: 1525 times
Been thanked: 1501 times

Re: Weird error when Downloading a rom

Postby rckclmbr » Sat Dec 29, 2012 4:14 am

Here's an example url: http://www.theoldcomputer.com/roms/down ... VzLnppcA==

It's heavily reproducible in Chrome. The fix is pretty easy, provided you have access to the codebase. The problem HTTP header is this:

Content-Disposition: attachment; filename=Legend_of_Zelda,_The_-_Special_Edition_(Zelda_Hack).nes.zip

It should look like this (note the added quotes):

Content-Disposition: attachment; filename="Legend_of_Zelda,_The_-_Special_Edition_(Zelda_Hack).nes.zip"

So the code should look something like this:

add_header("Content-Disposition", "attachment; filename=\"" + $filename + "\"");
User avatar
rckclmbr
Next LVL Up at : 5
Next LVL Up at : 5
 
Posts: 1
Joined: Sat Dec 29, 2012 4:06 am
Has thanked: 0 time
Been thanked: 2 times
Fav System: Not Sure

Next

Return to Support with ROMs

Who is online

Users browsing this forum: No registered users and 185 guests