我该如何让这个起作用呢?
curl -XPOST 'http://localhost:9290/location/place' -d '{"geoloc": {"lat": "38.1899", "lon": "-76.5087"}, "longitude": "-76.5087", "admin_name1": "Maryland", "admin_name2": "St. Mary's", "admin_name3": "", "postal_code": "20692", "admin_code3": "", "country_code": "US", "admin_code1": "MD", "latitude": "38.1899", "admin_code2": "037", "accuracy": null, "place_name": "Valley Lee"}'
Mary's
中的 '
导致了这个失败。我像这样从文件中运行它 cat curl-cmd.txt | sh
,但在命令行中也无法正常工作。我尝试使用 \'
、\\'
和 \u0027
(Unicode 的 '
),但都没有成功。我被卡住了。