如何在 Windows 命令提示符下在 httpie 中更正输入此请求?
http POST http://localhost:1337/api/articles title=TestArticle author='John Doe' description='lorem ipsum dolar sit amet' images:='[{"kind":"thumbnail", "url":" http://habrahabr.ru/images/write-topic.png "}, {"kind":"detail", "url":" http://habrahabr.ru/images/write-topic.png "}] '
但我收到错误:http: error: argument REQUEST_ITEM: "Doe'" is not a valid value
我用双引号替换了所有单引号
http POST http://localhost:1337/api/articles title=TestArticle author="John Doe" description="lorem ipsum dolar sat amet" images:="[{"kind":"thumbnail", "url":" http://habrahabr.ru/images/write-topic.png "}, {"kind":"detail", "url":" http://habrahabr.ru/images/write-topic.png "}] "
但它也不起作用,在这种情况下我收到错误:
http:错误:“图像:= [{种类:缩略图,网址:http ://habrahabr.ru/images/write-topic.png },{种类:详细信息,网址:http ://habrahabr.ru/images/ write-topic.png }]":期望用双引号括起来的属性名称:第 1 行第 3 列(字符 2)