Exemple #1
0
 /// <summary>
 /// 添加cookie
 /// </summary>
 /// <param name="connId"></param>
 /// <param name="cookie"></param>
 /// <param name="relpace">是否替换</param>
 /// <returns></returns>
 public bool AddCookie(IntPtr connId, TCookie cookie, bool relpace)
 {
     return(HttpSdk.HP_HttpAgent_AddCookie(pAgent, connId, cookie.Name, cookie.Value, relpace));
 }
Exemple #2
0
 /// <summary>
 /// 添加cookie
 /// </summary>
 /// <param name="connId"></param>
 /// <param name="name"></param>
 /// <param name="value"></param>
 /// <param name="relpace">是否替换</param>
 /// <returns></returns>
 public bool AddCookie(IntPtr connId, string name, string value, bool relpace)
 {
     return(HttpSdk.HP_HttpAgent_AddCookie(pAgent, connId, name, value, relpace));
 }