---
title: "java设置userAgent,Referer等参数"
author: "make19830723"
date: "2011-01-24T09:18:57Z"
tags: ["Java", "Windows"]
categories: ["编程语言"]
slug: "java-useragent-referer"
draft: false
lastmod: "2011-01-24T12:51:58Z"
id: 892106
url: "https://make19830723.iteye.com/blog/892106"
---

设置userAgent
connection.setRequestProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Maxthon;)");			