Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15995 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 27774 invoked by uid 1010); 18 Apr 2005 14:10:39 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 27759 invoked from network); 18 Apr 2005 14:10:39 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 18 Apr 2005 14:10:39 -0000 X-Host-Fingerprint: 212.250.162.18 smtpout18.mailhost.ntl.com Solaris 8 (1) Received: from ([212.250.162.18:28008] helo=mta10-winn.mailhost.ntl.com) by pb1.pair.com (ecelerity 1.2.12rc1 r(5476:5477)) with SMTP id 85/8D-18700-EDFB3624 for ; Mon, 18 Apr 2005 10:10:38 -0400 Received: from aamta07-winn.mailhost.ntl.com ([212.250.162.8]) by mta10-winn.mailhost.ntl.com with ESMTP id <20050418141035.VAHU9557.mta10-winn.mailhost.ntl.com@aamta07-winn.mailhost.ntl.com> for ; Mon, 18 Apr 2005 15:10:35 +0100 Received: from win2ks ([213.107.8.99]) by aamta07-winn.mailhost.ntl.com with ESMTP id <20050418141035.FKCI10174.aamta07-winn.mailhost.ntl.com@win2ks> for ; Mon, 18 Apr 2005 15:10:35 +0100 Reply-To: To: Date: Mon, 18 Apr 2005 15:11:37 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 Thread-Index: AcVEIIhlpNBNwEe9QJy18U48diWErQ== Message-ID: <20050418141035.FKCI10174.aamta07-winn.mailhost.ntl.com@win2ks> Subject: HTTP streams, status codes & WebDAV From: jared.williams@ntlworld.com ("Jared Williams") 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