#38889 [NEW]: Adding HTTP proxy support to DOM functions

From: Date: Wed, 20 Sep 2006 01:06:22 +0000
Subject: #38889 [NEW]: Adding HTTP proxy support to DOM functions
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-102458@lists.php.net to get a copy of this message
From: carolinearojas at yahoo dot com dot au Operating system: Win XP PHP version: 5.1.6 PHP Bug Type: Feature/Change Request Bug description: Adding HTTP proxy support to DOM functions 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 bug report at http://bugs.php.net/?id=38889&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38889&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38889&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38889&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38889&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38889&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38889&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38889&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38889&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38889&r=support Expected behavior: http://bugs.php.net/fix.php?id=38889&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38889&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38889&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38889&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38889&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38889&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38889&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38889&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38889&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38889&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38889&r=mysqlcfg

« previous php.bugs (#102458) next »