How can I make this work?
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"}'
The '
in Mary's
is causing this to fail. I am running it from a file like cat curl-cmd.txt | sh
but it won't work from the command line either. I've tried using \'
and \\'
and \u0027
(the unicode '
)
I'm stuck