Page 1 of 1

How can I POST JSON data with helium scraper?

Posted: Sun Jan 06, 2013 4:44 am
by harryh
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

Re: How can I POST JSON data with helium scraper?

Posted: Thu Jan 10, 2013 2:47 pm
by webmaster
Take a look at the WebRequest method of the Utils object. You can find the documentation at Help -> Documentation and then Actions -> Actions List -> Execute JavaScript -> Class List -> UtilsObject.