From:             php at virtualmonet dot com
Operating system: linux
PHP version:      5CVS-2004-03-17 (dev)
PHP Bug Type:     Output Control
Bug description:  stream http context

Description:
------------
hi;



It seems that the Context option 'content' of HTTP wrapper for stream,
does not pass the value to the server.

Reproduce code:
---------------
// === client side php code === 



$opts = array('http'=>array('method'=> "POST",

                            'content' => 'foo=bar'));



$context = stream_context_create($opts);



echo file_get_contents ($url, false, $context);









// === server side php code ===

print $_POST['foo'];



Expected result:
----------------
bar


-- 
Edit bug report at http://bugs.php.net/?id=27628&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=27628&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=27628&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=27628&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=27628&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=27628&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=27628&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=27628&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=27628&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=27628&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=27628&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=27628&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=27628&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27628&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=27628&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=27628&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=27628&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27628&r=float

Reply via email to