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 : 25
Next LVL Up at : 25
 
Posts: 24
Joined: Mon Oct 18, 2010 5:49 am
Location: Salt Lake City, Utah
Has thanked: 15 times
Have thanks: 9 times
My 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
Image
Image
Image

For this message the author te_lanus has received thanks:
crustyasp46 (Sun Jul 01, 2012 3:33 pm)
Rating: 14%
 
User avatar
te_lanus
Curator
Curator
Next LVL Up at : 670
Next LVL Up at : 670
 
Posts: 637
Joined: Mon Aug 23, 2010 4:02 pm
Has thanked: 107 times
Have thanks: 301 times
My 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.
Image
Image
Image
Webmaster, Admin, Amiga Fan, Retro Gamer and Collector
Mission : To preserve every rom for every system
Want to help out? Donate using this link
Home:Phenom II 1100T|4GB HyperX|HD 6990|Crossfire V|Moded IBM Case
Work:i7 2700k@5.2ghz|8GB(2133)|GTX680|P8P67 Deluxe|Obsidian 750D|Rasa RX360|OCZ RevoDrive3
Download and play Nintendo SNES ROMs on your iPad

For this message the author Hot Trout has received thanks: 3
crustyasp46 (Sun Jul 01, 2012 3:33 pm), punkydudester (Wed Aug 08, 2012 12:44 pm), te_lanus (Mon Jun 11, 2012 3:08 pm)
Rating: 43%
 
User avatar
Hot Trout
I made this :)
I made this :)
Next LVL Up at : 2400
Next LVL Up at : 2400
 
Posts: 2387
Joined: Mon Feb 01, 2010 6:42 pm
Location: UK
Has thanked: 741 times
Have thanks: 988 times
My Fav System: Amiga/C64/Dreamcast

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 : 25
Next LVL Up at : 25
 
Posts: 24
Joined: Mon Oct 18, 2010 5:49 am
Location: Salt Lake City, Utah
Has thanked: 15 times
Have thanks: 9 times
My 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.

For this message the author void* has received thanks:
crustyasp46 (Wed Aug 29, 2012 3:43 pm)
Rating: 14%
 
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
Have thanks: 4 times
My 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?
Global Moderator for Image
Image
Image
Image
Image
Image
User avatar
Kherr
Site Moderator
Site Moderator
Next LVL Up at : 1500
Next LVL Up at : 1500
 
Posts: 1481
Joined: Wed Feb 03, 2010 4:19 pm
Location: Detriot, MI, USA
Has thanked: 367 times
Have thanks: 295 times
My Fav System: PC/NES/SNES/Xbox 360

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.
Image
Image
Image
Webmaster, Admin, Amiga Fan, Retro Gamer and Collector
Mission : To preserve every rom for every system
Want to help out? Donate using this link
Home:Phenom II 1100T|4GB HyperX|HD 6990|Crossfire V|Moded IBM Case
Work:i7 2700k@5.2ghz|8GB(2133)|GTX680|P8P67 Deluxe|Obsidian 750D|Rasa RX360|OCZ RevoDrive3
Download and play Nintendo SNES ROMs on your iPad
User avatar
Hot Trout
I made this :)
I made this :)
Next LVL Up at : 2400
Next LVL Up at : 2400
 
Posts: 2387
Joined: Mon Feb 01, 2010 6:42 pm
Location: UK
Has thanked: 741 times
Have thanks: 988 times
My Fav System: Amiga/C64/Dreamcast

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.

For this message the author void* has received thanks: 2
crustyasp46 (Tue Sep 04, 2012 10:55 pm), Hot Trout (Sun Dec 30, 2012 2:41 am)
Rating: 29%
 
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
Have thanks: 4 times
My Fav System: NES, SNES, SMD, SMS

Re: Weird error when Downloading a rom

Postby PMJP » 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
PMJP
Site Moderator
Site Moderator
Next LVL Up at : 355
Next LVL Up at : 355
 
Posts: 339
Joined: Thu Feb 16, 2012 9:25 am
Location: Australia
Has thanked: 343 times
Have thanks: 288 times
My Fav System: Everything

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 + "\"");

For this message the author rckclmbr has received thanks: 2
crustyasp46 (Wed Jan 02, 2013 5:38 pm), Hot Trout (Sun Dec 30, 2012 2:41 am)
Rating: 29%
 
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
Have thanks: 2 times
My Fav System: Not Sure

Next

Return to Support with ROMs

Who is online

Users browsing this forum: No registered users and 3 guests