Resource icon

XF2 Addons Custom HTTP Client headers 1.0.0 Alpha
Allows add/set custom headers to all HTTP requests from XenForo via src/config.php.

Compatible versions
2.2
This simple add-on just allows add/set custom headers to all HTTP requests from XenForo via src/config.php. For example, you may want set Accept-Language for using another language, if remote web-resource respects this header.

Example usage (src/config.php):
PHP:
<?php

// database options ...
// additional options for caching (for example), proxying all HTTP requests and another...

$config['http']['headers'] = [
// Prefers russian language; if not present - then english or any another language
// More details: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language
'Accept-Language' => 'ru, en;q=0.9, *:q=0.5'
];
Disable VPN/Proxy for a Better Experience
FateKid
Author FateKid
Level
11
5,910 pts
1.0.0 Alpha Version
1 Downloads
235 Views
Published
Updated
0.00 star(s) 0 ratings Average Rating (0)

More files from FateKid

Customize Your XenForo 2 Community

Custom HTTP Client headers provides ultimate customization to your XenForo 2 community website! Enjoy powerful features that make your site stand out. Combine this add-on with XenForo 2 styles from our site and kickstart your online community now.

Why Download Our XenForo 2 Add-ons?

  • Easily enhance the quality of your XenForo online community.
  • Expand your XenForo 2 functionality with thousands of unique options.
  • Create unbelieveable user-experiences with advanced features.

Explore Other Resources

Are you looking for something different? Explore our thousands of unique and special XenForo 2 add-ons, available to download right now. FateKid shared this wonderful resource to you for free, so remember to share your appreciation by liking the resource and reviewing it.

Get started today and make your next project truly unique.

Top Bottom