ActionController::UnknownHttpMethod: ***, accepted HTTP methods are get, head, put, post, delete, and options

I'm occasionally getting exception notices with this error message:

  ActionController::UnknownHttpMethod: ***, accepted HTTP methods are
get, head, put, post, delete, and options

Anyone ever seen this or know what could be causing it?

Thanks,
Jeff

Got two of these on one of our sites today within seconds. My guess is
that it's a bot scanning for vulnerabilities on the site.

Error: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP
methods are get, head, put, post, delete, and options
Action: Internal
URL: http://mail.messaging.microsoft.com:25/
Parameters: {"action"=>"", "controller"=>""}
File: [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/
request.rb:35

Error: ActionController::UnknownHttpMethod: CONNECT, accepted HTTP
methods are get, head, put, post, delete, and options
Action: Internal
URL: http://www.google.com:443/
Parameters: {"action"=>"", "controller"=>""}
File: [GEM_ROOT]/gems/actionpack-2.3.5/lib/action_controller/
request.rb:35

I would also like to hear from others experiencing this, and if any
precautions should be taken...

/nikolaj

Still getting a slew of these on one of my sites. Annoying, because
you can't seem to trap it with the normal rescue_from in
application_controller, as Rails seems to intercept this exception
before it ever makes it that far up the chain.

Seems like this might be a good use case for a Rack filter: intercept
the bad request earlier and discard/log/whatever...