Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/wcf/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 如何获取标题值_.net_Wcf_Http_Wcf Web Api_Asp.net Web Api - Fatal编程技术网

.net 如何获取标题值

.net 如何获取标题值,.net,wcf,http,wcf-web-api,asp.net-web-api,.net,Wcf,Http,Wcf Web Api,Asp.net Web Api,如何从WCF web API中的web方法访问标题值?您可以尝试以下方法: (使用System.Web;) HttpUtility.UrlDecode(HttpContext.Current.Request.Headers["myValue"]);

如何从WCF web API中的web方法访问标题值?

您可以尝试以下方法:

(使用System.Web;)

HttpUtility.UrlDecode(HttpContext.Current.Request.Headers["myValue"]);