Site maintenance: Sun 15 Nov, from 20:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

Started by yourvirtualworld on 11 Mar 2012, 11:32 PM · Views: 6,308

Results 21 to 25 of 25
10 Feb 2013, 11:32 PM
#21
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

DrByte:

Yes, I'm pretty sure the v1.5.1 version of that particular file should work fine on v1.3.9h.

I'll plug it in and back up the original. If I don't reply back to the forum indicating that it didn't work, we'll assume that the file replacement worked.

10 Feb 2013, 11:42 PM
#22
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

Just make sure your backup isn't "renaming the file to somethingelse.php" with ".php" on the end and left in the same folder, else it'll cause problems. Rename to ".bak" instead of to ".php" ;)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Feb 2013, 3:16 AM
#23
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Re: Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

I tested the download of a zip file and received an "HTTP 400 Bad Request" message in both Chrome and Internet Explorer and double checked the proper setup and configuration of this downloadable purchase. See attached error-message.jpg. I inspected the /pub/.kcyvgvxbhwkrsuc-1360549111 subdirectory and it contained no content whatsoever as I suspected.

11 Feb 2013, 3:43 AM
#24
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

Your screenshot shows that it's still using the dot-prefix, which you said your hosting company doesn't allow (I still think it's dumb of them to do that).

To override the dot-prefix (again, this should NOT be needed under normal circumstances), you will need to add a new file at /includes/extra_configures/skip_dot_prefix_for_downloads.php containing just the following line:

<?php define('DOWNLOADS_SKIP_DOT_PREFIX_ON_REDIRECT', TRUE); I repeat, for the sake of those reading this discussion later: **THIS SHOULD NEVER BE NEEDED**. THIS SHOULD BE AN ABSOLUTE *LAST* RESORT IN TROUBLESHOOTING. IT SHOULD BE AVOIDED AS MUCH AS POSSIBLE.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

11 Feb 2013, 4:57 AM
#25
yourvirtualworld avatar

yourvirtualworld

New Zenner

Join Date:
Feb 2012
Posts:
70
Plugin Contributions:
0

Re: Downloads Fail because Error 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH):

Applying the skip_dot_prefix_for_downloads.php file permits downloading without any problem. It appears to function just like the "Download by streaming" attribute setting. (Click on Configuration > Attribute Settings to access the Attribute Settings screen.) On the surface, customers cannot easily identify the original source location of their file thus leaving it open to acquisition without purchasing. DrByte, if you'd care to explain what's going on "under the hood" and potential dangers/cautions with your skip_dot_prefix_for_downloads.php file I'm sure many readers would like to know.