This actually happens with a much smaller test script, as soon as you use POST together with "content" in the context options.
<?php $opts = array('http' => array('method' => 'POST', 'content' => 'foo')); $context = stream_context_create($opts); $result = file_get_contents('http://localhost/poster.php', false, $context); ?>
result: PHP Warning: file_get_contents(http://localhost:4436/ResourceAll): failed to open stream: HTTP request failed!
When you remove the content key, all is fine.
This actually happens with a much smaller test script, as soon as you use POST together with "content" in the context options.
<?php context_ create( $opts); localhost/ poster. php', false, $context);
$opts = array('http' => array('method' => 'POST', 'content' => 'foo'));
$context = stream_
$result = file_get_contents('http://
?>
result: localhost: 4436/ResourceAl l): failed to open stream: HTTP request failed!
PHP Warning: file_get_contents(http://
When you remove the content key, all is fine.