WebClient problem with URL which ends with a period

后端 未结 5 1818
无人及你
无人及你 2021-01-21 13:48

I\'m running the following code;

using (WebClient wc = new WebClient())
{
    string page = wc.DownloadString(URL);
    ...
}

To access the URL

5条回答
  •  一个人的身影
    2021-01-21 14:28

    To address a single period (.) at the end of a URL use the following:

    
                  
    
    

    To address two periods (..) or other denied sequences, see the following article:

    http://www.iis.net/ConfigReference/system.webServer/security/requestFiltering/denyUrlSequences

提交回复
热议问题