trunk/src/LythumOSL.Core/IO/Http.cs
/// <summary>
/// Simple file download without any progress processing
/// </summary>
/// <param name="url"></param>
/// <param name="saveLocation"></param>
Simple file download without any progress processing
Simple file download without any progress processing
public bool DownloadFile(string url, ref string saveLocation)
		{
			Validation.RequireValidString(url, "url");
			File.FileSolution(ref saveLocation);
			try
			{
				Error();
				WebClient client = new WebClient();
				client.DownloadFile(url, saveLocation);
			}
			catch (Exception ex)
			{
				Error(ex);
			}
			return HasError;
		}
public bool DownloadFile ( string url , ref string saveLocation ) { Validation . RequireValidString ( url , " " ) ; File . FileSolution ( ref saveLocation ) ; try { Error ( ) ; WebClient client = new WebClient ( ) ; client . DownloadFile ( url , saveLocation ) ; } catch ( Exception ex ) { Error ( ex ) ; } return HasError ; }
Simple file download without any progress processing
Simple file download without any progress processing
url
string
None
string
ref
saveLocation
None