C# WebClient non-english request header value encoding

冷暖自知 提交于 2019-12-20 05:40:40

问题


I want to add some custom headers into web request's header. I'm doing this by WebClient.Headers.Add("Header: Value") approach. There is not a problem with ASCII characters but non-ASCII characters.

Is it possible to change "Value of Header's encoding"?

来源:https://stackoverflow.com/questions/14751072/c-sharp-webclient-non-english-request-header-value-encoding

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!