This document is aimed at developers and system administrators who intend to install and configure the WURFL InFuze Module for HAProxy on Unix, Linux, and other Unix-based systems.
In order for the Module to work it is ESSENTIAL that the
libwurfl library is installed on your system.
libwurfl is provided in your Customer Vault/FileX.
WURFL device detection is included in the HAProxy source code from release 1.7-dev6. You are required to download and compile the
HAProxy source code including WURFL device detection: please refer to the HAProxy documentation for build instructions. You will need the WURFL InFuze C API (libwurfl) installed on your system at compile time
(refer to "Installing libwurfl" above).
To enable WURFL device detection, you will need to add
USE_WURFL=1 to your HAProxy compile command as shown below:
$ make TARGET=<target> USE_WURFL=1
WURFL_DEBUG=1 can be set to increase logging verbosity.
The following are supported WURFL directives (see doc/configuration.txt in your HAProxy source tree):
Sample configuration file:
wurfl-information-list wurfl_id model_name is_tablet
## LRU cache
## no cache
#wurfl-patch-file <paths to custom patch files>
There are two distinct methods available to transmit WURFL data downstream to the target application:
All data listed in wurfl-information-list
http-request set-header X-WURFL-All %[wurfl-get-all()]
A subset of data listed in wurfl-information-list
http-request set-header X-WURFL-Properties %[wurfl-get(wurfl_id,is_tablet)]
Based on the configuration above, the
X-WURFL-All header value will result in something like
(all wurfl informations configured in wurfl-information-list, in the same order as listed, separated by a comma)
X-WURFL-Properties header value will result in something like
(only wurfl_id and is_tablet informations, in the same order as listed in
wurfl-get() call, separated by a comma)
wurfl-information-list configuration directive may include:
wurfl_id Contains the device ID of the matched device.
wurfl_root_id Contains the device root ID of the matched device
wurfl_isdevroot Tells if the matched device is a root device. Possible values are "TRUE" or "FALSE"
wurfl_useragent The original user agent coming with this particular web request
wurfl_api_version Contains a string representing the currently used Libwurfl API version
wurfl_info A string containing information on the parsed wurfl.xml and its full path
wurfl_last_load_time Contains the UNIX timestamp of the last time WURFL has been loaded successfully.
wurfl_normalized_useragent The normalized user agent.
wurfl_useragent_priority The user agent priority used by WURFL.
Capabilities and virtual capabilities
Refer to WURFL capabilities for all capabilities and virtual capabilities names.
© 2024 ScientiaMobile Inc.
All Rights Reserved.
NOTICE: All information contained herein is, and remains the property of ScientiaMobile Incorporated and its suppliers, if any. The intellectual and technical concepts contained herein are proprietary to ScientiaMobile Incorporated and its suppliers and may be covered by U.S. and Foreign Patents, patents in process, and are protected by trade secret or copyright law. Dissemination of this information or reproduction of this material is strictly forbidden unless prior written permission is obtained from ScientiaMobile Incorporated.
1875 Campus Commons Dr.
Reston, VA 20191
2024 - ScientiaMobile, Inc. All rights reserved. WURFL® and ImageEngine® are the registered trademarks of ScientiaMobile, Inc.