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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 20 00:01:27 2024 UTC