diff --git a/lib/airbrake/rails3_tasks.rb b/lib/airbrake/rails3_tasks.rb
index <HASH>..<HASH> 100644
--- a/lib/airbrake/rails3_tasks.rb
+++ b/lib/airbrake/rails3_tasks.rb
@@ -80,7 +80,10 @@ namespace :airbrake do
     end
 
     puts 'Processing request.'
-    env = Rack::MockRequest.env_for("/verify")
+
+    protocol = Rails.application.config.force_ssl ? 'https' : 'http'
+
+    env = Rack::MockRequest.env_for("#{protocol}://www.example.com/verify")
 
     Rails.application.call(env)
Use https for rake airbrake:test if force_ssl set to true (fixes #<I>)