1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-10-30 23:42:33 +01:00
Sonarr/NzbDrone.Core/Providers/HttpProvider.cs

24 lines
551 B
C#
Raw Normal View History

2010-09-28 05:40:01 +02:00
using System;
using System.Net;
namespace NzbDrone.Core.Providers
2010-09-28 05:40:01 +02:00
{
class HttpProvider : IHttpProvider
2010-09-28 05:40:01 +02:00
{
public string GetRequest(string request)
{
//Get the request and return as String Array
try
{
var webClient = new WebClient();
return webClient.DownloadString(request);
}
catch (Exception ex)
{
Console.WriteLine(ex);
return String.Empty;
}
}
}
}