You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ga�l Laurans <gl...@gofree.indigo.ie> on 2001/04/07 02:09:51 UTC

Re:Help with User-Agent for multiple versions of the same browser platform

On 05/04/2001 19:59:39, Rick Castello has wisely spoken thusly:
>I'm developing for multiple devices.
>
>The standard cocoon.properties works great for
>HandHTTP, Netscape, MSIE, etc.
>
>I run into a problem with Pocket Internet Explorer.
>The default cocoon.properties maps it like so:
>
>    pocketexplorer=MSPIE
>
>However, my server logs show all connections from 
>Pocket Internet Explorer as:
>   
>    Mozilla/2.0 (compatible; MSIE3.02; Windows CE; 240x320)
>
>This certainly doesn't seem like it will match against 
>MSPIE.
>
>I tried:	      pocketexplorer=Windows CE 
>(which would have width problems for people on Handheld CE 
>instead of Pocket CE, but it would have been a start).  
>
>I also tried:     pocketexplorer=240x320
>which didn't work either.
>
>I tried again:    pocketexplorer='Windows CE'
>and:			pocketexplorer=Windows CE
>which also failed.
>
>Can anyone point me in the right direction, please?

As Robin Green pointed out the problem is very likely to be the order of the entries in the cocoon.properties.

>Even a bit of help on allowable syntax and exactly what
>fields or parts of fields this identifier attempts to 
>match against would be extremely helpful...

It's based on java.util.Properties, so I think that everything is allowed including the except sequences t, \n, \r, 
\\, \", \', \ (a backslash and a space), and \\uxxxx but not \n, \r or \r\n which are the delimiters. Anyway, I tested " " (a 
space), "(" and ";" so you can use them without problems (Cocoon 1.8.2) and I don't think you'll need anything else.
Gael


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>