W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > October 2007

Re: Some thougths about mobileok checker

From: Sean Owen <srowen@google.com>
Date: Mon, 15 Oct 2007 19:51:27 -0400
Message-ID: <e920a71c0710151651n4365ddm720d94b7ed435c5@mail.gmail.com>
To: "Guido García Bernardo" <ggarciab@itdeusto.com>
Cc: public-mobileok-checker@w3.org
Guido you can try executing this code before running the tests:

Map<String,String> myAdditionalHeaders = new HashMap<String,String>();
myAdditionalHeaders.put("Accept-Language", "ja");
Map<String,Object> configMap = new HashMap<String,Object>();
configMap.put(TesterConfiguration.HTTP_REQUEST_HEADER_OVERRIDES_KEY,
myAdditionalHeaders);
TesterConfiguration config = new TesterConfiguration(configMap);
TesterConfiguration.setConfiguration(config);
...

That should do it. You have to use the latest code from CVS.

Sean

On 10/15/07, Guido García Bernardo <ggarciab@itdeusto.com> wrote:
> 1. Request headers
>
> I think support for overriding those headers not defined by mobileOK
> Basic will be very useful, not only to extend it, but for other purposes
> like validating if a website is mobileOk in different languages...
Received on Monday, 15 October 2007 23:51:41 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:13:04 GMT