我想从Windows shell使用HTTPie发送POST请求
JSON 输入看起来像:
{
"name": "pub1",
"email": "support@pub1.com",
"address": {
"city": "new york",
"pincode": 12345
}
}
我试过了:
http -v POST http://127.0.0.1:8000/publication/ name=pub1 email=support@pub1.com address:="{"city":"new york", "pincode":12345}"
它给出以下错误:
http: error: "address:={city: new": Expecting property name enclosed in double quotes: line 1 column 2 (char 1)
我使用Postman and Its Working做到了这一点,但我想知道如何使用httpie 做到这一点?
我还在 SOF 和 GitHub 上尝试了可用的解决方案,但无法找出问题所在。