url解码器Python3
我有这段代码
@login_required
@render_to(appName+':search.html')
@append_permission_context()
def view(request):
id = request.GET.get("v", "")
context = {
"number" : id
}
context_vars = vars_base(request)
context.update(context_vars)
return base(request, context)
将我前面的链接链接到这个网址:https://......../search/?v=MzA=
看起来无法解码“?v=MzA=”。有什么建议吗?
提前致谢
I have this code
@login_required
@render_to(appName+':search.html')
@append_permission_context()
def view(request):
id = request.GET.get("v", "")
context = {
"number" : id
}
context_vars = vars_base(request)
context.update(context_vars)
return base(request, context)
which links me in my front to this url: https://......../search/?v=MzA=
Looks it is not enable to decode "?v=MzA=". Any suggestion?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
等号应该被编码(这对于空格,引号等是相同的)
你的url请求应该看起来像:
https://.../search/?v=MzA%3D
equals sign should be encoded (this is same for space, quotes and so on)
your url request should looks like:
https://.../search/?v=MzA%3D