使用webkit自定义请求时会报出以下警告:
content-type missing in HTTP POST, defaulting to application/x-www-form-urlencoded. Use QNetworkRequest::setHeader() to fix this problem.
解决方法:
request.setHeader(QNetworkRequest.ContentTypeHeader, ("text/html; charset=utf-8"));

相关文章:

  • 2021-10-02
  • 2022-01-11
  • 2021-07-30
  • 2022-12-23
  • 2021-10-12
  • 2021-10-12
  • 2021-05-23
  • 2022-01-23
猜你喜欢
  • 2021-05-17
  • 2021-10-02
  • 2021-06-03
  • 2021-08-05
  • 2022-12-23
相关资源
相似解决方案