How can I POST JSON data with helium scraper?
Posted: Sun Jan 06, 2013 4:44 am
Hi Juan,
I need to POST a JSON data request to the server. If I was doing it with curl, it would look like this:
curl -i -X POST -k -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" https://sitehere.com/search/searching.json --data '{"searchString":"","address": {"latitude":55,"longitude":-3},"page":0}'
I then get a JSON return to parse. How can I do this with HS?
Thanks
I need to POST a JSON data request to the server. If I was doing it with curl, it would look like this:
curl -i -X POST -k -H "Accept: application/json" -H "Content-Type: application/json; charset=utf-8" https://sitehere.com/search/searching.json --data '{"searchString":"","address": {"latitude":55,"longitude":-3},"page":0}'
I then get a JSON return to parse. How can I do this with HS?
Thanks