postman 请求返回400 bad request,但导出为python/curl 却可以成功返回
错误内容
<html>
<head>
<title>400 Bad Request</title>
</head>
<body>
<center>
<h1>400 Bad Request</h1>
</center>
<hr>
<center>nginx/1.17.10</center>
</body>
</html>
问题
然而同样的请求用postman的code snippet 导出为python 或者curl 就可以成功返回。
解决
把curl 原封不动重新导入到postman里面,send,成功。 对比发现是因为原请求少了如下几个header:
将他们全部勾选上,原请求也可以成功发送了