Doug Beaver
2006-Apr-07 19:30 UTC
[Mongrel] HTTP 1.1 parser and non-standard request methods
hi, i was thinking of creating a WebDAV plugin for mongrel, but ran into an issue... the http parser hardcodes which request methods it considers valid, so it blocks non-standard request methods like MKCOL, PROPFIND, etc. i''m not familiar with the type of grammar being used for the parser, but is it possible to defer the request method validation to a later point, possibly inside the HttpHandler#process callback? thanks, doug -- "Contrary to what most people say, the most dangerous animal in the world is not the lion or the tiger or even the elephant. It''s a shark riding on an elephant''s back, just trampling and eating everything they see." -- Jack Handey
Hey Doug, Yeah, you''re probably the 10th person asking for that to be relaxed so I''m going to relax it in the next release. But, I have to resolve how the ruby frameworks will handle this. I''m not sure what they''ll do if handed an kind of request type. Zed On 4/7/06 3:30 PM, "Doug Beaver" <doug at beaver.net> wrote:> hi, > > i was thinking of creating a WebDAV plugin for mongrel, but ran into an > issue... the http parser hardcodes which request methods it considers > valid, so it blocks non-standard request methods like MKCOL, PROPFIND, > etc. i''m not familiar with the type of grammar being used for the > parser, but is it possible to defer the request method validation to a > later point, possibly inside the HttpHandler#process callback? > > thanks, > > doug