/// <summary> /// 获取Cookie /// </summary> /// <param name="connId"></param> /// <param name="key"></param> /// <returns></returns> public string GetCookie(string key) { IntPtr ptr = IntPtr.Zero; if (HttpSdk.HP_HttpClient_GetCookie(pClient, key, ref ptr)) { return(Common.PtrToAnsiString(ptr)); } return(""); }