最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

utf 8 - Error on calling an API using Webclient - charset=UTF-8 - Stack Overflow

programmeradmin1浏览0评论

I have a problem on calling an API using Webclient. In my request a see that Webclient automatically put this header:

Content-Type: multipart/form-data; boundary=--------------------------648852845839919888993842; charset=UTF-8

I always receive a response 404 Bad request because on the server side arrives the request without charset=UTF-8

Content-Type: multipart/form-data; boundary=--------------------------648852845839919888993842

I don't know which infrastructure component remove the charset=UTF-8 but if I do a postman request without charset=UTF-8 everything works fine.

So, the problem is, why Webclient automatically put this value on the Content-Type header? It’s possible to force Webclient to override it?

发布评论

评论列表(0)

  1. 暂无评论