Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Json 使用curl收集数据时URL错误的错误/非法格式_Json_Curl_Httprequest_Client Server_Restapi - Fatal编程技术网

Json 使用curl收集数据时URL错误的错误/非法格式

Json 使用curl收集数据时URL错误的错误/非法格式,json,curl,httprequest,client-server,restapi,Json,Curl,Httprequest,Client Server,Restapi,我试图通过http请求,使用利用REST-API的curl命令,从atlassian confluence wiki页面收集数据。我试图访问的网站由我公司的服务器维护。我当前使用的命令是: curl -v -w -u admin:admin https://confluence.ai.com/rest/api/content/494966598 | python -mjson.tool 代替admin:admin,我输入我的用户名,这是我的电子邮件,然后输入冒号和密码,例如ridwan。reg

我试图通过http请求,使用利用REST-API的curl命令,从atlassian confluence wiki页面收集数据。我试图访问的网站由我公司的服务器维护。我当前使用的命令是:

curl -v -w -u admin:admin https://confluence.ai.com/rest/api/content/494966598 | python -mjson.tool
代替admin:admin,我输入我的用户名,这是我的电子邮件,然后输入冒号和密码,例如ridwan。regression@ai.com:thisispassword@ai我知道当我点击时链接是正确的”https://confluence.ai.com/rest/api/content/494966598"它直接将我带到页面,页面以JSON格式显示所有信息,但当我尝试在终端中输入该命令时,我得到一个错误消息

Closing Connection -1
curl: (3) URL using bad/illegal format or missing URL
......
....
.....
No JSON object could be decoded