Exemple #1
0
        /// <summary>
        /// 获取某个请求头(单值)
        /// </summary>
        /// <param name="connId"></param>
        /// <param name="key"></param>
        /// <returns></returns>
        public string GetHeader(IntPtr connId, string key)
        {
            IntPtr ptr = IntPtr.Zero;

            if (HttpSdk.HP_HttpAgent_GetHeader(pAgent, connId, key, ref ptr))
            {
                return(Common.PtrToAnsiString(ptr));
            }
            return("");
        }