Send a curl request with no Accept header?
I have written an REST API and I'm try to test a request that has no Accept header. If I send a request via Curl it adds a default header Accept: */*
, you can see this if you add Curl's -v parameter.
Is there are way to send a request via Curl with no Accept header?
在冒号右侧传入一个没有值的标题,以便从请求中删除,即使卷曲否则会自行添加它。
curl -H 'Accept:' http://example.com/
链接地址: http://www.djcxy.com/p/73524.html
上一篇: 反向使用Javascript模板语言
下一篇: 发送没有Accept头的卷发请求?