示例#1
0
        /// <summary>
        /// 发送 POST 请求
        /// </summary>
        /// <param name="connId"></param>
        /// <param name="path"></param>
        /// <param name="headers"></param>
        /// <param name="body"></param>
        /// <returns></returns>
        public bool SendPost(IntPtr connId, string path, THeader[] headers, string body)
        {
            int bodyLength    = body == null ? 0 : body.Length;
            int headersLength = headers == null ? 0 : headers.Length;

            return(HttpSdk.HP_HttpAgent_SendPost(pAgent, connId, path, headers, headersLength, body, bodyLength));
        }
示例#2
0
 /// <summary>
 /// 发送 POST 请求
 /// </summary>
 /// <param name="connId"></param>
 /// <param name="path"></param>
 /// <param name="headers"></param>
 /// <param name="body"></param>
 /// <returns></returns>
 public bool SendPost(IntPtr connId, string path, THeader[] headers, string body)
 {
     return(HttpSdk.HP_HttpAgent_SendPost(pAgent, connId, path, headers, headers.Length, body, body.Length));
 }