public void PerformURLGET(bool async, String url)
{
try
{
if (async)
{
AsynchronousCloudRequest request = new AsynchronousCloudRequest(url);
Thread t = new Thread(new ThreadStart(request.Run));
t.Start();
}
else
{
String contents = BotUtil.LoadPage(new Uri(url));
HandleResponse(contents);
}
}
catch (IOException e)
{
throw new EncogCloudError(e);
}
}