网址中的非法字符 [英] illegal character in url

查看:153
本文介绍了网址中的非法字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

https://s3.amazonaws.com/SmartsheetB1/3d615151217a406caf1adb167d46c82a?response-content-disposition=attachment%3Bfilename%3D%22coding.txt%22%3Bfilename*%3DUTF-8%27%27coding.txt&Signature=FZVMwl20a2QMcgRXssG4YB4BvI0 %3D&Expires = 1366873667&AWSAccessKeyId = 11950YFEZZJFSSKKB3G2





这是我发送给webclient.downloaddata()的上述网址





错误:路径中的非法角色





请把非法字符发给我。请不要删除问题

解决方案

文件名后面有一个星号(*) - 可能是一个问题。

但除此之外,URL看起来非常糟糕。我看到coding.txt两次,filename两次......

你不能用POST请求而不是GET请求发送查询数据 - 这会让事情变得更容易。 / BLOCKQUOTE>

"https://s3.amazonaws.com/SmartsheetB1/3d615151217a406caf1adb167d46c82a?response-content-disposition=attachment%3Bfilename%3D%22coding.txt%22%3Bfilename*%3DUTF-8%27%27coding.txt&Signature=FZVMwl20a2QMcgRXssG4YB4BvI0%3D&Expires=1366873667&AWSAccessKeyId=11950YFEZZJFSSKKB3G2"


this is the above url i am sending to the webclient.downloaddata()


error:-illegal character in path


please send me the illegal character .please dont deleted the question

解决方案

There''s an asterisk (*) after "filename" - that might be one problem.
But also otherwise, the URL looks very bad. I see "coding.txt" twice, and "filename" twice...
Can''t you send the query data with a POST request instead of a GET request - that makes things easier.


这篇关于网址中的非法字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆