dpps0715
2015-02-15 00:11
浏览 371
已采纳

在golang http.NewRequest中包含%2F

When I try and include a "/" by using %2F in http.NewRequest, it converts it back into "/" when it calls url.Parse(). Is there any way to prevent this? I tried converting the percent to %25, but it still doesn't work.

You can see it here: http://play.golang.org/p/YOnktREbbf

图片转代码服务由CSDN问答提供 功能建议

当我尝试通过在http.NewRequest中使用%2F来添加“ /”时,它会将其转换回“ /”,当它调用url.Parse()时。 有什么办法可以防止这种情况? 我尝试将百分比转换为%25,但仍然无法使用。</ p>

您可以在此处查看: http://play.golang.org/p/YOnktREbbf </ p> </ div>

1条回答 默认 最新

相关推荐 更多相似问题