C# WebRequest.getResponse(): 400 Bad Request

前端 未结 2 619
甜味超标
甜味超标 2020-12-06 12:34

I am trying to download a file from a server using System.Web. It actually works, but some links give me trouble. The links look like this:

http://cdn.somesi         


        
2条回答
  •  眼角桃花
    2020-12-06 13:05

    This has now changed in .NET 4.5. By default you can now use escaped slashes. I posted more info on this (including screenshots) in the comments here: GETting a URL with an url-encoded slash

提交回复
热议问题