[英]curl not taking my “&” sign in URL
I'm trying to run this code: 我正在尝试运行以下代码:
curl -O https://openapi.etsy.com/v2/
users/asdfasdf/profile?fields=blablabla&
api_key=fwieahflksfiahrglkdflgkas
But it seems to only process: 但这似乎只能处理:
curl -O https://openapi.etsy.com/v2/users
/asdfasdf/profile?fields=blablabla
and outputs this: 并输出以下内容:
API request missing api_key or valid OAuth parameters
I've run the actual https url into my browser and it runs fine. 我已经在浏览器中运行了实际的https url,并且运行正常。 I've even run it in a python script.
我什至在python脚本中运行过它。 Any idea why it won't take my api key at the end?
知道为什么它最后不带我的api密钥吗? Is the "&" sign messing something up?
是“&”符号弄乱了东西吗?
&
是一个特殊字符,因此请尝试将URL用单引号引起来:
curl -O 'https://openapi.etsy.com/v2/users/asdfasdf/profile?fields=blablabla&api_key=fwieahflksfiahrglkdflgkas'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.