mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-14 11:23:42 +02:00
24 lines
551 B
C#
24 lines
551 B
C#
using System;
|
|
using System.Net;
|
|
|
|
namespace NzbDrone.Core.Providers
|
|
{
|
|
class HttpProvider : IHttpProvider
|
|
{
|
|
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;
|
|
}
|
|
}
|
|
}
|
|
}
|