note 121033 added to xmlreader.open

From: Date: Sat, 29 Apr 2017 10:08:14 +0000
Subject: note 121033 added to xmlreader.open
Groups: php.notes 
Request: Send a blank email to php-notes+get-209039@lists.php.net to get a copy of this message
If you like to read the XML from HTTP whit a POST request, you can use libxml_set_streams_context. Example: <?php $param = array('http' => array( 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'content' => http_build_query(array( 'post_param1' => 'value1', 'post_param2' => 'value2', )), )); libxml_set_streams_context(stream_context_create($param)); $reader = XMLReader::open('https://example.com/get.php?get_param=value3'); ?> ---- Server IP: 72.52.91.14 Probable Submitter: 46.140.2.21 ---- Manual Page -- http://php.net/manual/en/xmlreader.open.php Edit -- https://master.php.net/note/edit/121033 Del: integrated -- https://master.php.net/note/delete/121033/integrated Del: useless -- https://master.php.net/note/delete/121033/useless Del: bad code -- https://master.php.net/note/delete/121033/bad+code Del: spam -- https://master.php.net/note/delete/121033/spam Del: non-english -- https://master.php.net/note/delete/121033/non-english Del: in docs -- https://master.php.net/note/delete/121033/in+docs Del: other reasons-- https://master.php.net/note/delete/121033 Reject -- https://master.php.net/note/reject/121033 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209039) next »