bug日记之-------java.io.IOException: Server returned HTTP response code: 400 for URL

 

 

出事代码

 bug日记之-------java.io.IOException: Server returned HTTP response code: 400 for URL

 

 

出事原因

 

bug日记之-------java.io.IOException: Server returned HTTP response code: 400 for URL

 

 

解决方案

  bug日记之-------java.io.IOException: Server returned HTTP response code: 400 for URLbug日记之-------java.io.IOException: Server returned HTTP response code: 400 for URL

 

 

 

 

 总结

    多看源码, 我上面的实现方式并不好, 如果返回的响应编码为400以下却又不是200的情况下getErrorStream会返回null, 所以具体完美的解决方案, 还得慢慢深究.

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-30
  • 2023-03-20
  • 2022-12-23
  • 2021-10-09
猜你喜欢
  • 2021-10-24
  • 2022-12-23
  • 2022-12-23
  • 2021-05-14
  • 2021-12-09
  • 2021-05-21
相关资源
相似解决方案