Re: POST in REST

On Monday, December 2, 2002, at 02:52  PM, Sandro Hawke wrote:
>> GET: cat foo
>> (or if CGI: ./foo --arg1=val1 --arg2=val2 ...)
>> PUT: cat > foo
>> DELETE: rm foo
>> POST: cat | foo
>
> If I squint and wave my hands, that works, but looking more closely
> this approach constrains foo to be both end-user content and
> system-executable content.

How so? Something that accepts POST is considered a CGI in the get case:

./foo
cat > foo
rm foo
cat | foo

These are all reasonable things to do with system-executable content.
-- 
Aaron Swartz [http://www.aaronsw.com]

Received on Monday, 2 December 2002 16:21:27 UTC