前景提要
用 requests 获取一个 json 格式的数据,之前请求后都可以正常返回 json 字符串;今天突然出错返回 406,意思是服务器判断客户端不支持 json? 406 - Client browser does not accept the MIME type of the requested page The page you are looking for cannot be opened by your browser because it has a file name extension that your browser does not accept
用 chrome 的 F12 看,请求的链接 Response 返回 json 数据正常
想问下如何通过 requests 向服务器端提供支持 json 的信息?