示例#1
0
        public void Restful(ERestful method, string action, byte[] body)
        {
            CHttpWebRequestEntity request = new CHttpWebRequestEntity(url + action, method);

            request.SetBody(body).SetContentType("application/octet-stream");
            queue.Enqueue(request);
        }
示例#2
0
        public void Restful(ERestful method, string action, WWWForm form)
        {
            CHttpWebRequestEntity request = new CHttpWebRequestEntity(url + action, method);

            request.SetBody(form.data).SetContentType("application/x-www-form-urlencoded");
            queue.Enqueue(request);
        }