#29280 [NEW]: changing the default http-wrapper
| From: | Progman2002 at gmx dot de | Date: | Tue, 20 Jul 2004 12:01:49 +0000 |
| Subject: | #29280 [NEW]: changing the default http-wrapper | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-62717@lists.php.net to get a copy of this message | ||
From: Progman2002 at gmx dot de
Operating system:
PHP version: Irrelevant
PHP Bug Type: *Network Functions
Bug description: changing the default http-wrapper
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 bug report at http://bugs.php.net/?id=29280&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29280&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29280&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=29280&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=29280&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=29280&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=29280&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=29280&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=29280&r=support
Expected behavior: http://bugs.php.net/fix.php?id=29280&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=29280&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=29280&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=29280&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29280&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=29280&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=29280&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=29280&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29280&r=float