我在用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?
Forbidden
You don't have permission to access /hits on this server.
-------------------------------------------------------------------------------- Apache/1.3.29 Server at localhost.localdomain Port 80 通过网页直接打开是可用的,请问有没有什么方法可以让httpclient设置成与浏览器相同的身份去访问URL?
如果需要密码会提示没有密码,权限的问题应该跟密码无关.