HttpUtils Class

Simple HTTP request helper to let you retrieve data from a Web server and convert it to something useful.

System.Object
   Westwind.Utilities.HttpUtils

Class Members

MemberDescription
CreateWebProxy Helper method that creates a proxy instance to store on the Proxy property
public static IWebProxy CreateWebProxy(string proxyAddress, bool bypassonLocal, String[] bypassList)
DownloadImageToFile Creates a temporary image file from a download from a URL If you don't pass a file a temporary file is created in Temp Files folder. You're responsible for cleaning up the file after you are done…
public static string DownloadImageToFile(string imageUrl, string filename, HttpRequestSettings settings)
DownloadImageToFileAsync Creates a temporary image file from a download from a URL If you don't pass a file a temporary file is created in Temp Files folder. You're responsible for cleaning up the file after you are done…
public static Task DownloadImageToFileAsync(string imageUrl, string filename, HttpRequestSettings settings)
HttpRequestBytes Retrieves bytes from the server
public static byte[] HttpRequestBytes(string url)
HttpRequestBytesAsync Retrieves bytes from the server
public static Task HttpRequestBytesAsync(string url)
HttpRequestString Retrieves and Http request and returns data as a string.
public static string HttpRequestString(string url)
HttpRequestStringAsync Retrieves and Http request and returns data as a string.
public static Task HttpRequestStringAsync(string url)
JsonRequest
public static TResultType JsonRequest(HttpRequestSettings settings)
JsonRequestAsync
public static Task JsonRequestAsync(HttpRequestSettings settings)
Namespace: Westwind.Utilities

Assembly: Westwind.Utilities.dll