Header[] uaHeaders = method.getHeaders("User-Agent");
if (uaHeaders != null && uaHeaders.length > 0) {
String userAgent = uaHeaders[0].getValue();
try {
// note: this doesn't work for 'Fandango/4.5.1 CFNetwork/548.1.4 Darwin/11.0.0'
UserAgentInfo uai = PARSER.parse(userAgent);
String name = uai.getUaName();
int lastSpace = name.lastIndexOf(' ');
String browser = name.substring(0, lastSpace);
String version = name.substring(lastSpace + 1);
har.getLog().setBrowser(new HarNameVersion(browser, version));
} catch (IOException e) {