Hello, This is a simple diff to the main README for adding more DeviceAtlas's convertor / sample fetch use cases.
Regards.
From e584020d80f9f1e9878ca07b9df2a32a2d3e4492 Mon Sep 17 00:00:00 2001 From: David Carlier <dcarl...@afilias.info> Date: Wed, 28 Oct 2015 11:08:15 +0000 Subject: [PATCH] DOC: deviceatlas: more example use cases. In addition of adding additional headers examples, some examples of defining an ACL. --- README | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/README b/README index cf97605..739f209 100644 --- a/README +++ b/README @@ -251,23 +251,33 @@ Sample configuration : There are two distinct methods available, one which leverages all HTTP headers and one which uses only a single HTTP header for the detection. The former -method is highly recommended and more accurate. +method is highly recommended and more accurate. There are several possible use +cases. +# To transmit the DeviceAtlas data downstream to the target application -All HTTP headers +All HTTP headers via the sample / fetch + + http-request set-header X-DeviceAtlas-Data %[da-csv-fetch(primaryHardwareType,osName,osVersion,browserName,browserVersion)] + +Single HTTP header (e.g. User-Agent) via the convertor + http-request set-header X-DeviceAtlas-Data %[req.fhdr(User-Agent),da-csv-conv(primaryHardwareType,osName,osVersion,browserName,browserVersion)] - http-request set-header X-DeviceAtlas-Data %[da-csv-fetch(primaryHardwareType,osName,osVersion,browserName,browserVersion)] +# Mobile content switching with ACL +All HTTP headers -Single HTTP header (e.g. User-Agent) + acl is_mobile da-csv-fetch(mobileDevice) 1 +Single HTTP header - http-request set-header X-DeviceAtlas-Data %[req.fhdr(User-Agent),da-csv-conv(primaryHardwareType,osName,osVersion,browserName,browserVersion)] + acl device_type_tablet req.fhdr(User-Agent),da-csv-conv(primaryHardwareType) "Tablet" Please find more information about DeviceAtlas and the detection methods at https://deviceatlas.com/resources . + 1.2) 51Degrees Device Detection ------------------------------- -- 2.1.4