今天在使用postman进行接口测试时,发现一个很奇怪的问题,There was an error connecting to XXX

报错说连不上服务器,后来查找资料

Http请求的header中不能带有中文 There was an error connecting to XXX

才发现:Http请求的header中不能带有中文 

随后,使用在线URLencoder和URLdecoder的功能,将中文参数以utf-8转码放入Header中,再在服务端URLdecoder进行解码。

 

 

 

相关文章:

  • 2022-01-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-12-23
  • 2021-08-07
  • 2021-06-16
  • 2021-04-07
猜你喜欢
  • 2021-06-24
  • 2022-03-02
  • 2021-11-14
  • 2021-10-09
  • 2022-12-23
  • 2021-09-14
  • 2021-08-01
相关资源
相似解决方案