开发者

How to Add Modify Headers Value with HttpWebRequest?

I ha开发者_如何学Cve Mozilla plug-in Modify headers, It contains header value. How can i add these values with request when i create the object of HttpWebrequest in C#.net.


This method will return all headers attached with the request : HttpWebRequest.Headers


You can also use header tool is more easy to use : Header Tool.


Just add your header to the Headers collection:

httpWebRequest.Headers.Add(headerName, value);
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜