#38889 [Opn->Bgs]: Adding HTTP proxy support to DOM functions

From: Date: Wed, 20 Sep 2006 14:16:40 +0000
Subject: #38889 [Opn->Bgs]: Adding HTTP proxy support to DOM functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102478@lists.php.net to get a copy of this message
 ID:               38889
 Updated by:       rrichards@php.net
 Reported By:      carolinearojas at yahoo dot com dot au
-Status:           Open
+Status:           Bogus
 Bug Type:         Feature/Change Request
 Operating System: Win XP
 PHP Version:      5.1.6
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php

See libxml_set_streams_context


Previous Comments:
------------------------------------------------------------------------

[2006-09-20 01:06:22] carolinearojas at yahoo dot com dot au

Description:
------------
Is it possible to add HTTP proxy support to DOM function? I couldn't
see any references to this on the php site. We are currently having
difficulties with a loadHTMLFile script when accessing remote servers
external to our network.

Reproduce code:
---------------
$dom = new DomDocument ();
$dom= DOMDocument::loadHTMLFile('http://www.php.net');
$title = $dom->getElementsByTagName("title");
print $title->item(0)->textContent;

Expected result:
----------------
PHP: Hypertext Preprocessor

Actual result:
--------------
Warning: DOMDocument::loadHTMLFile(http://www.php.net)
[function.DOMDocument-loadHTMLFile]: failed to open stream: Connection
timed out in /web/test1.php on line 3

Warning: DOMDocument::loadHTMLFile()
[function.DOMDocument-loadHTMLFile]: I/O warning : failed to load
external entity "http://www.php.net" in
/web/test1.php on line 3


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=38889&edit=1


Thread (2 messages)

« previous php.bugs (#102478) next »