Swarthmore / litterfall

Application and Scripts used for the Litterfall Project
0 stars 1 forks source link

cgi.FieldStorage() does not support PUT and DELETE #21

Closed zafire06 closed 11 years ago

zafire06 commented 11 years ago

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.)

jadams1 commented 11 years ago

well we can't change how cgi.FieldStorage() works. Boyd must have figured out a way around this because deleting is working fine, apparently...