Request Useragent in Mojolicious
Asked Answered
M

1

9

I am trying to read the UserAgent from a request and perform operations based on it. Can anyone tell me, how I can get request UserAgent in Mojolicious.

Thanks.

Marrufo answered 21/5, 2012 at 17:46 Comment(2)
I figured it out $req->headers->user_agent.Marrufo
Post your answer and mark it as accepted. Better yet, show the code in the context of a simple but complete working example.Stillage
M
11

I figured it out: $req->headers->user_agent

Marrufo answered 12/6, 2012 at 19:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.