今天用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 解决办法_干货_02

 

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

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