且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

HttpClient不返回Content-Type

更新时间:2022-06-15 22:15:50

您应该查看 response.Content.Headers ,您应该在此处找到与内容相关的标题。可以在下面的msdn链接上找到有关所有内容标头类型的更多信息。

You should look at response.Content.Headers you should find headers relating to the content here. More information about all the content header types can be found on the msdn link below.

https://msdn.microsoft.com/zh-cn/library/system.net.http。 headers.httpcontentheaders(v = vs.118).aspx