使用httpclient发出请求返回提示You don't have permission to access /hits on this server.
我在用httpclient GetMethod 发出请求,服务器返回以下信息
Forbidden
You don't have permission to access /hits on this server.
--------------------------------------------------------------------------------
Apache/1.3.29 Server at localhost.localdomain Port 80
通过网页直接打开是可用的,请问有没有什么方法可以让httpclient设置成与浏览器相同的身份去访问URL?