今天用postman调用后端接口的时候报出这个错误,如下图。

Invalid character found in method name. HTTP method names must be tokens 解决办法

 

 错误原因是用的https请求如下图

Invalid character found in method name. HTTP method names must be tokens 解决办法

 

 把请求改为http即可解决这个错误,如下图

Invalid character found in method name. HTTP method names must be tokens 解决办法

 

相关文章: