If you use request.user_agent in your application, you can write the following code:
get "https://stackoverflow.com/", headers: { "HTTP_USER_AGENT" => "Googlebot" }
If you use request.user_agent in your application, you can write the following code:
get "https://stackoverflow.com/", headers: { "HTTP_USER_AGENT" => "Googlebot" }