Issue reported in Gemini: http://support.dotnetnuke.com/issue/V...
The problem is in the compression module of DNN.
DNN 5.6.0 output is like:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Date: Tue, 01 Feb 2011 08:37:39 GMT
Content-Length: 1362
<html><Head></Head><body onload="document.form1.submit()"><form name="form1" method="POST" action="url"><input name="BPE_Merchant" type="hidden" value="key"><input name="BPE_Amount" type="hidden" value="2155"><input name="BPE_Currency" type="hidden" value="EUR"><input name="BPE_Description" type="hidden" value="bBayt: WEB20110131-165950-4627895"><input name="BPE_Reference" type="hidden" value="WEB20110131-165950-4627895"><input name="BPE_Language" type="hidden" value="NL"><input name="BPE_Mode" type="hidden" value="1"><input name="BPE_Signature2" type="hidden" value="sign"><input name="BPE_Invoice" type="hidden" value="WEB20110131-165950-4627895"><input name="BPE_Return_Success" type="hidden" value="url"><input name="BPE_Return_Reject" type="hidden" value="url"><input name="BPE_Return_Error" type="hidden" value="url"><input name="BPE_Return_Method" type="hidden" value="POST"><input name="BPE_Style" type="hidden" value="PAGE"><input name="cVar1" type="hidden" value="347-207"></form></body></html>
DNN 5.6.1 produces:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Encoding: gzip
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Compressed-By: DotNetNuke-Compression
X-Powered-By: ASP.NET
Date: Tue, 01 Feb 2011 08:49:14 GMT
Content-Length: 1362
<html><Head></Head><body onload="document.form1.submit()"><form name="form1" method="POST" action="url"><input name="BPE_Merchant" type="hidden" value="key"><input name="BPE_Amount" type="hidden" value="2155"><input name="BPE_Currency" type="hidden" value="EUR"><input name="BPE_Description" type="hidden" value="bBayt: WEB20110131-165950-4627895"><input name="BPE_Reference" type="hidden" value="WEB20110131-165950-4627895"><input name="BPE_Language" type="hidden" value="NL"><input name="BPE_Mode" type="hidden" value="1"><input name="BPE_Signature2" type="hidden" value="sign"><input name="BPE_Invoice" type="hidden" value="WEB20110131-165950-4627895"><input name="BPE_Return_Success" type="hidden" value="url"><input name="BPE_Return_Reject" type="hidden" value="url"><input name="BPE_Return_Error" type="hidden" value="url"><input name="BPE_Return_Method" type="hidden" value="POST"><input name="BPE_Style" type="hidden" value="PAGE"><input name="cVar1" type="hidden" value="350-207"></form></body></html>
GZIP in fiddler indicates that zip magic number is incorrect.
Next modification in code makes the post work, but still magic number is incorrect as decoded by Fiddler.
context.Response.AppendHeader("Content-encoding", "*");
The result is:
HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Encoding: *,gzip
Server: Microsoft-IIS/7.5
X-AspNet-Version: 4.0.30319
X-Compressed-By: DotNetNuke-Compression
X-Powered-By: ASP.NET
Date: Tue, 01 Feb 2011 09:20:38 GMT
Content-Length: 1362
<html><Head></Head><body onload="document.form1.submit()"><form name="form1" method="POST" action="url"><input name="BPE_Merchant" type="hidden" value="key"><input name="BPE_Amount" type="hidden" value="2155"><input name="BPE_Currency" type="hidden" value="EUR"><input name="BPE_Description" type="hidden" value="bBayt: WEB20110131-165950-4627895"><input name="BPE_Reference" type="hidden" value="WEB20110131-165950-4627895"><input name="BPE_Language" type="hidden" value="NL"><input name="BPE_Mode" type="hidden" value="1"><input name="BPE_Signature2" type="hidden" value="sign"><input name="BPE_Invoice" type="hidden" value="WEB20110131-165950-4627895"><input name="BPE_Return_Success" type="hidden" value="url"><input name="BPE_Return_Reject" type="hidden" value="url"><input name="BPE_Return_Error" type="hidden" value="url"><input name="BPE_Return_Method" type="hidden" value="POST"><input name="BPE_Style" type="hidden" value="PAGE"><input name="cVar1" type="hidden" value="357-207"></form></body></html>
Now Content-Encoding: *,gzip is added it seems to work. However, the gzip decompression of fiddler says something is wrong with the magic number.