Resource icon

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

FateKid

DEVIL DID IT

Admin

Status

offline

Posts

15,024

Likes

133,792

Resources

3,400

Bits Credits

532

LEVEL

11

5,910 XP

FateKid submitted a new resource:

Custom HTTP Client headers - Allows add/set custom headers to all HTTP requests from XenForo via src/config.php.

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...

Read more about this resource...
 
Liked by:

Latest threads

Forum statistics

Threads
62,003
Messages
93,744
Members
58,859
Latest member
SlittyA2
Top Bottom