|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2011-05-27 11:23 UTC] simast at gmail dot com
Description: ------------ Apparently, having a POST method HTTP context request does not return response body back. Tested with stream_get_contents() but I suspect it does affect other similar functions as well (file_get_contents/fread). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 15:00:01 2025 UTC |
Are you sure your server response with some content? This works fine: <?php $opts = array( 'http'=>array( 'method'=>'POST' ) ); $context = stream_context_create($opts); $fp = fopen('http://php.net', 'r', false, $context); echo stream_get_contents($fp); ?>