用java生成一个随机的浏览器agent,随机的浏览器key

int first = r.nextInt(7) + 55;
int second = r.nextInt(3200);
int fouth = r.nextInt(140);
String agent = MessageFormat.format("Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/{0}.0.{1}.{2} Safari/537.36 SE 2.X MetaSr 1.0", first , second, fouth);

发表评论

电子邮件地址不会被公开。 必填项已用*标注