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.

PMat
  • 2,039
  • 2
  • 29
  • 46

1 Answers1

11

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

Greg Bacon
  • 134,834
  • 32
  • 188
  • 245
PMat
  • 2,039
  • 2
  • 29
  • 46