I have been trying to make Litterfall properly RESTful, but it seems that cgi.FieldStorage()—the method we currently use to get data sent from the browser—cannot handle either the PUT or the DELETE requests.
This is a sad realization. Maybe it's just because I don't know how to use cgi.FieldStorage() correctly, but according to my facile research, it does not support the two aforementioned methods.
(The way to get around this is, of course, to modify the methods that are supposed to use PUT or DELETE so that they use GET or POST instead. This is an ad-hoc solution.)
I have been trying to make Litterfall properly RESTful, but it seems that cgi.FieldStorage()—the method we currently use to get data sent from the browser—cannot handle either the PUT or the DELETE requests.
This is a sad realization. Maybe it's just because I don't know how to use cgi.FieldStorage() correctly, but according to my facile research, it does not support the two aforementioned methods.
(The way to get around this is, of course, to modify the methods that are supposed to use PUT or DELETE so that they use GET or POST instead. This is an ad-hoc solution.)