how do I get data from a rest service ?
Posted: Fri Dec 30, 2016 10:28 am
I am new to spider basic
Ideally I want to get json from a particular rest service.
The service defaults to supplying xml unless I can set the request header accept field to json. (firefox)
At the moment in my spider project I have a web gadget that fills with xml when I access the rest service.
Can I access that xml in the web gadget ?
Can I set the request header to get json and if I can what sort of gadget should I use ?
I am ok with javascript but I like the concept of spider basic, I would greatly appreciate some pointers to
lead me in the right direction for accessing a rest service with spider.
Thank you.
steve
Ideally I want to get json from a particular rest service.
The service defaults to supplying xml unless I can set the request header accept field to json. (firefox)
At the moment in my spider project I have a web gadget that fills with xml when I access the rest service.
Can I access that xml in the web gadget ?
Can I set the request header to get json and if I can what sort of gadget should I use ?
I am ok with javascript but I like the concept of spider basic, I would greatly appreciate some pointers to
lead me in the right direction for accessing a rest service with spider.
Thank you.
steve