我可以替换subversion网址中的"#"符号,以便可以通过http访问吗?

Jac*_*ble 0 svn http httpwebrequest

我办公室里的一些人在他们的颠覆项目中用#符号创建子文件夹.如:

https://subversion/Repo/Product/tags/version/Source/c#/FTP/bin/
Run Code Online (Sandbox Code Playgroud)

Subversion和TortoiseSVN对此没有任何问题,但是当我使用浏览器(或更具体地说HttpWebRequest)导航到它时,它会因为#在URL中无效而死亡.

是否有一些HTML代码或其他东西我可以#在代码中替换,以便我可以使用http从Subversion中提取文件?

Bri*_*ach 5

你只需要使用URL编码值,#这是%23

https://subversion/Operations/iHealth/tags/1.9.002_diag/Source/c%23/FTP/bin/
Run Code Online (Sandbox Code Playgroud)

http://www.blooberry.com/indexdot/html/topics/urlencoding.htm