Re: POST in REST

Jeff Bone wrote:
> GET:  someprog < foo
> PUT:  somestuff > foo
> DELETE:  rm foo
> POST:  somestuff >> foo

I've always said:

GET: cat foo
(or if CGI: ./foo --arg1=val1 --arg2=val2 ...)
PUT: cat > foo
DELETE: rm foo
POST: cat | foo

Writing an implementation of a generic foo is on my todo list:
     http://www.aaronsw.com/projects#ucspi-http

-- 
Aaron Swartz [http://www.aaronsw.com]

Received on Sunday, 1 December 2002 10:47:21 UTC