#29280 [Opn->Fbk]: changing the default http-wrapper
| From: | wez@php.net | Date: | Tue, 20 Jul 2004 12:24:47 +0000 |
| Subject: | #29280 [Opn->Fbk]: changing the default http-wrapper | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-62719@lists.php.net to get a copy of this message | ||
ID: 29280
Updated by: wez@php.net
Reported By: Progman2002 at gmx dot de
-Status: Open
+Status: Feedback
Bug Type: *Network Functions
PHP Version: Irrelevant
New Comment:
I know what you mean (and we do have something planned), but can you
please clarify which functions you are using to implement proxy
support?
Previous Comments:
------------------------------------------------------------------------
[2004-07-20 14:01:48] Progman2002 at gmx dot de
Description:
------------
I'm behind a proxy so my local php version cannot access the internet
directly. Every HTTP-Request must go throught the proxy. I have see
that I can create my own http-wrapper with settings to use my proxy and
use this metioned "context" as fourth parameter for the functions like
fopen and file_get_contents. This works fine, but what about if I use
third-party scripts, which just use file_get_contents($url) instead of
file_get_contents($url, false, $context)? It is possible to change or
modify the internal http-wrapper to use my proxy instead of creating a
new http-wrapper with stream_*() so I can just use file_get_contents()
and fopen() without the 'zcontext'-parameter?
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29280&edit=1