request_parameter_invalid [英] request_parameter_invalid

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

问题描述


当我尝试在skydrive上使用curl上传文件时,出现以下错误。


卷曲响应如下: {" error":{" code":" request_parameter_invalid"," message":"无法完成请求的操作。不支持请求的文件名'/home/...../..../..../tasks_list.xls'。文件名必须
不能以'。'开头或结尾,不得包含任何不可打印的字符或任何以下字符:'\ u005c','/',':',';','* ','\ u003c','\ u003e','|','?'。" }


此错误不会出现在Localhost上,而只会出现在虚拟主机上。


请告诉我解决方案。


提前致谢。

解决方案

看起来curl包含HTTP请求中的整个文件路径。 尝试在请求中包含文件名。


我假设你在这里使用POST? 是否可以使用PUT? 根据文档,这更简单:


http://msdn.microsoft.com/en-us/library/live/hh826531.aspx#uploading_files


Hi,

When i am trying to upload a file using curl on skydrive, following error comes.

curl response is following : { "error": { "code": "request_parameter_invalid", "message": "The requested operation could not be completed. The requested file name '/home/...../..../..../tasks_list.xls' is not supported. A file name must not start or end with '.', must not contain any unprintable characters or any of the following characters: '\u005c', '/', ':', ';', '*', '\u003c', '\u003e', '|', '?'." } }

This error is not coming on Localhost, but only on the webhost.

Please tell me the solution.

Thanks in advance.

解决方案

It looks like curl is including the entire file path in the HTTP request.  Try just including the name of the file in the request.

I assume you're using POST here?  Is it possible to use PUT instead?  That's a lot simpler, as per the documentation:

http://msdn.microsoft.com/en-us/library/live/hh826531.aspx#uploading_files


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

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