我想发送一个没有用户代理的请求以进行测试。我尝试使用headerRemove
,但它不起作用。有没有办法做到这一点?
val request = HttpRequest.get("https://example.com")
.header("x-dummy-header", "remove me")
headerRemove("x-dummy-header")
headerRemove("User-Agent")
GET / HTTP/1.1
Connection: Close
Host: example.com
User-Agent: Jodd HTTP