Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: CGI and Databaseby monarch (Priest) |
on Feb 09, 2009 at 04:19 UTC ( [id://742349]=note: print w/replies, xml ) | Need Help?? |
According to RFC 2616: "In particular, the convention has been established that the GET and HEAD methods SHOULD NOT have the significance of taking an action other than retrieval. These methods ought to be considered "safe". This allows user agents to represent other methods, such as POST, PUT and DELETE, in a special way, so that the user is made aware of the fact that a possibly unsafe action is being requested."
It may not seem important to you now, but you should consider ways of making your delete operations POST operations instead of GET operations - because a delete operation affects the underlying state of the system. One way is to output HTML that starts a form:
This example used HTML::Template as the templating technique (but there are many different ways to output the HTML). Update: changed reference paragraph from RFC 2616.
In Section
Seekers of Perl Wisdom
|
|