public HttpResponseMessage RawGetRequest(string url) { HttpResponseMessage response = Communicator.Ajax(new RequestOptions { Method = HttpMethod.Get, Headers = new KeyValuePair <string, string>[] { new KeyValuePair <string, string>("X-RequestDigest", this.RequestDigest) }, Url = new Uri(url), }); return(response); }
public HttpResponseMessage RawPostRequest(string url, string content = "", string contentType = null) { HttpResponseMessage response = Communicator.Ajax(new RequestOptions { Method = HttpMethod.Post, Headers = new KeyValuePair <string, string>[] { new KeyValuePair <string, string>("X-RequestDigest", this.RequestDigest) }, Url = new Uri(url), Data = content, ContentType = contentType, }); return(response); }