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.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/650779
Title:
stream_context_create + file_get_content doesn't retrieve full file
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs