#37860 [Opn->Bgs]: gzip encoded form input is not handled correctly

From: Date: Tue, 20 Jun 2006 14:30:51 +0000
Subject: #37860 [Opn->Bgs]: gzip encoded form input is not handled correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-98564@lists.php.net to get a copy of this message
 ID:               37860
 Updated by:       mike@php.net
 Reported By:      tjerk dot meesters at muvee dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Zlib Related
 Operating System: Windows
 PHP Version:      5.1.4
 New Comment:

This is not a bug, why would you assume that is *supposed* to work? You
can create a feature request though.



Previous Comments:
------------------------------------------------------------------------

[2006-06-20 11:59:49] tjerk dot meesters at muvee dot com

Description:
------------
When gzip encoded input is used to post form data, the variables are
lost.

The example code expects a form.php which simply does a print_r() on
$_POST.

It's assumed that the zlib functionality is available.

Reproduce code:
---------------
<?php

echo file_get_contents(
	'http://www.example.com/form.php',false,
	stream_context_create(array(
		'http'=>array(
			'method'=>'POST',
			'header'=>"Content-Type:
application/x-www-form-urlencoded\nContent-Encoding: gzip",
			'content'=>gzencode('data=somebigvalue'),
		)
	))
);

?>

Expected result:
----------------
A print_r() output of an array where the key 'data' is set to
'somebigvalue'

Actual result:
--------------
A print_r() of an empty array.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37860&edit=1


Thread (5 messages)

« previous php.bugs (#98564) next »