The method checks the client type, version and family by analyzing the request header.
HTTP_ACCEPT
- If header contains application/pxml => ‘xf’ (xforms client)
- If header contains wml or wap => ‘wap‘
- If header contains applicaton/html => ‘html‘
- Otherwise, default to html => ‘html‘
If xf cient, the "POST" parameters are parsed to name/value pairs in params
HTTP_CLIENT_INFO_URL
- If header exists => 0.8 client
- If header doesn‘t exist => 0.6 client
Samle of what HTTP_CLIENT_INFO_URL returns:
http://homer.mobiolabs.com/hub/devicecap/devices/capability?id=0.6.28:Motorola:V3
HTTP_MOBIO_AGENT
- If header contains WM5 => Window Mobile family
Return Codes
The method returns the following instance varables:
@client => 'xf' or 'html' or 'wap'
params[] => array contains name/value pairs of all parameters from POST request
@paramsdoc => POST request in xml (parsed by hpricot)
@xml => rxml transformer for the client type
@client_version => '0.6' or '0.8'