HTTP streams, status codes & WebDAV

From: Date: Mon, 18 Apr 2005 14:11:37 +0000
Subject: HTTP streams, status codes & WebDAV
Groups: php.internals 
Request: Send a blank email to internals+get-15995@lists.php.net to get a copy of this message
Hi, Was hoping to use PHP streams API to query a WebDAV server, something along the lines of.. $context = stream_context_create( array( 'http' => array('method' => 'PROPFIND') ) ); $f = fopen('http://localhost/WebDav/', 'r', FALSE, $context); fpassthru($f); fclose($f); but the streams API seems overly strict on status codes returned, a succesful PROPFIND is meant to return a 207 status code, but the HTTP stream wrapper isn't treating it as such, throwing an error, and failing to open. Is this a bug? Jared

« previous php.internals (#15995) next »