Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Request Useragent in Mojolicious

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.

like image 664
PMat Avatar asked May 21 '12 17:05

PMat


1 Answers

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

like image 134
PMat Avatar answered Oct 14 '22 16:10

PMat