24 Dec
2010
24 Dec
'10
10:10 p.m.
On 24 December 2010 19:48, Puneet Kishor <punk.kish@gmail.com> wrote:
$ curl http://application/foo/all
a json stream of all the foo widgets is returned.
There's an advent calendar up just now with some advice on this sort of thing e.g. Writing REST web services with Dancer http://advent.perldancer.org/2010/8 Some curl usage - maybe use "application/json"? e.g. curl -H 'Accept-Type: application/json' <url> Cheers, -- Alastair Sherringham http://www.sherringham.net