Bug #18183: [RFE] Configurable "User-Agent" in php_fopen_url_wrap_http()
| From: | jos_php dot net at interexa dot de | Date: | Fri, 05 Jul 2002 12:59:54 +0000 |
| Subject: | Bug #18183: [RFE] Configurable "User-Agent" in php_fopen_url_wrap_http() | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-13219@lists.php.net to get a copy of this message | ||
From: jos_php.net@interexa.de
Operating system: all
PHP version: 4.1.2
PHP Bug Type: Filesystem function related
Bug description: [RFE] Configurable "User-Agent" in php_fopen_url_wrap_http()
It would be helpful if the "User-Agent"-String in fopen('http://...') calls
would be configurable.
The file affected is ext/standard/http_fopen_wrapper.c, line 180.
Maybe we could define a global variable which is set to "PHP/PHP_VERSION"
by default, but can be overwritten. Or an optional parameter to the
fopen() function. But would be also useful in include() calls...
--
Edit bug report at http://bugs.php.net/?id=18183&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=18183&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18183&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18183&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18183&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18183&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18183&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18183&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18183&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18183&r=globals