AmazonScrape.Scraper.EncodeURL C# (CSharp) Method

EncodeURL() public static method

Encodes the supplied string for use as a URL
public static EncodeURL ( string URL ) : string
URL string string to encode
return string
        public static string EncodeURL(string URL)
        {
            try
            {
                return HttpUtility.UrlEncode(URL).Replace("+","%20");
            }
            catch
            {
                string msg = "Unable to encode URL: " + URL;
                throw new ArgumentException(msg);
            }
        }