HttpClientUtils.DownloadString
public string DownloadString(string url, object data, string contentType, string verb)
Parameters
url
The url to access
data
The data to send. String data is sent as is all other data is JSON encoded.
contentType
Optional Content type for the request
verb
The HTTP Verb to use (GET,POST,PUT,DELETE etc.)
Remarks
By default this method does not throw on errors or error status codes, but returns null and an error message. For error requests you can check settings.HasResponseContent and then either directly access settings.Response, or use settings.GetResponseStringAsync() or friends to retrieve error content.
If you want the method to throw exceptions on errors an > 400 status codes,
use settings.ThrowExceptions = true.
