php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #38889 Adding HTTP proxy support to DOM functions
Submitted: 2006-09-20 01:06 UTC Modified: 2006-09-20 14:16 UTC
From: carolinearojas at yahoo dot com dot au Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.1.6 OS: Win XP
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: carolinearojas at yahoo dot com dot au
New email:
PHP Version: OS:

 

 [2006-09-20 01:06 UTC] 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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-09-20 14:16 UTC] rrichards@php.net
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
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 18:01:29 2024 UTC