Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/algorithm/11.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
难以理解应用程序/vnd.amundsen.maze+;使用wget的xml_Xml_Api_Rest_Wget - Fatal编程技术网

难以理解应用程序/vnd.amundsen.maze+;使用wget的xml

难以理解应用程序/vnd.amundsen.maze+;使用wget的xml,xml,api,rest,wget,Xml,Api,Rest,Wget,我正在学习RESTfulAPI 在上面链接的参考资料中,它说“客户端可以通过向服务器发送HTTP GET请求来请求可用迷宫列表。” 如何使用wget获取此可用资源列表。我正在学习wget,如果有一种方法可以使用js在文本编辑器中编写它,我也想看看是如何做到的 C:\path\practice\wget> wget -S -q http://www.example.org --header=" Content-Type : application/vnd.amundsen.maze+xml"

我正在学习RESTfulAPI

在上面链接的参考资料中,它说“客户端可以通过向服务器发送HTTP GET请求来请求可用迷宫列表。”

如何使用wget获取此可用资源列表。我正在学习wget,如果有一种方法可以使用js在文本编辑器中编写它,我也想看看是如何做到的

C:\path\practice\wget> wget -S -q http://www.example.org --header=" Content-Type : application/vnd.amundsen.maze+xml"
windows cli显示:::wget:--header:Invalid header`Content-Type application/vnd.amundsen.maze+xml


有人能告诉我一个方法来获得这个列表的可用迷宫使用wget。那将非常有帮助。谢谢您的时间。

您应该删除内容类型前后的空格。这将有助于:

wget -S -q http://www.example.org --header="Content-Type: application/vnd.amundsen.maze+xml"