KFOC, KSOC, K.OX

Kims Delikate Etiket Sky

ParseUserAgent.php

Introduction

The ParseUserAgent API returns a string in response to a URL. Several types of strings can be generated: text, xml (more to follow). This document describes the required format of ParseUserAgent API URLs and the available parameters.

URL format

ParseUserAgent API URLs must be in the following format:

http://sandbox.kimbach.org/ParseUserAgent.php?<parameter 1>&<parameter 2>&<parameter n>

Note: Each URL must be all on one line.

Parameters are separated with the ampersand (&) character. You can specify as many parameters as you like, in any order.

Parameters

format (optional)

The format to return the result in, if not specified the result will be returned in the text format xml - return the result in an XML format text - return the result in text format

useragent (optional)

The useragent string to parse, if not specified the useragent of the callee will be used.

Usage examples

Callees useragent in text format

http://sandbox.kimbach.org/ParseUserAgent.php

Where:

Callees useragent in XML format

http://sandbox.kimbach.org/ParseUserAgent.php?
format=xml

Where: