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); }
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); }