Page 1 of 1

Download Protected File Duplicate headers

PostPosted: January 31st, 2012, 10:12 pm
by zensai
Hey, the plugin is working all in all pretty good. Here is my setup:

WordPress ver 3.3.1
s2Member Pro ver 111220
Server Type: Debian
MySQL ver 5.0.45
PHP ver 5.2.17
and using Powweb Hosting (

I can successfully download protected files from the /s2member-files/ root directory and it's sub files from sub folders etc. Using the latest Safari (on Mac OS X) and the latest IE (on Windows). However can't download these protected files using the latest FireFox and Chrome on Mac OS X (or FireFox running on Windows).

This is what I'm getting for an error response in Chrome (mac os x):
Code: Select all
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 346 (net::ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH): Multiple distinct Content-Length headers received. This is disallowed to protect against HTTP response splitting attacks.

and this is the response in FireFox (mac os x):
Code: Select all
Corrupted Content Error
The page you are trying to view cannot be shown because an error in the data transmission was detected.

I've been trying a bunch of suggestions from this post: but no luck. Interestingly, my .htaccess file in the main wordpress directory is:
main wordpress directory
Code: Select all
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

However, when changing it to the .htaccess for the main wp directory Jason had given, it sort of killed my site making it unable to visit other pages besides the front/ index page. So I switched it back to what's shown above. The .htaccess file contents of the /s2member-files/ folder was the same as the .htaccess Jason had provided in that above post.

I also tried the creating the s2-hacks.php file in wp-content/mu-plugins/s2-hacks.php but it gives me back this craziness spit out in all my browsers on mac os x:
Code: Select all
Warning: Cannot modify header information - headers already sent by (output started at /hermes/web08/b1670/pow.zensai/htdocs/nsb/wp-content/mu-plugins/s2-hacks.php:1) in /hermes/web08/b1670/pow.zensai/htdocs/nsb/wp-content/plugins/s2member/includes/classes/ on line 336

and that's for that php file lines 336 - 345 and 378 it says it.

Any suggestions? I'm kind of a novice at this but I've been hacking this kind of stuff together before with php code tweaks. There seems to be something up with the size of the file and perhaps timing out? Is that what the duplicate headers meaning is? Oh, these are .mp3 files I'm trying to download. Any help?


Re: Download Protected File Duplicate headers

PostPosted: February 2nd, 2012, 4:47 pm
by Raam Dev
Hi Brian,

I haven't seen this issue before but I'm going to check with another support rep. Thank you for your patience.

Re: Download Protected File Duplicate headers

PostPosted: February 3rd, 2012, 12:33 pm
by Raam Dev
Hi Brian,

Could you please try the suggestions here: viewtopic.php?f=4&t=17001&p=61498#p61498