for some reason S.getHeader("User-Agent") returns empty, but the second one(using the so useful for) did the trick, thanks!
On Jul 20, 4:34 pm, David Pollak <feeder.of.the.be...@gmail.com> wrote: > How about S.getHeader("User-Agent")? > > Or for {r <- S.request; ua <- r.userAgent} yield ua? > > On Mon, Jul 20, 2009 at 4:20 PM, DFectuoso <santiago1...@gmail.com> wrote: > > > Im trying to get information about the browser the user is using and > > wanted to get some working snippets around S.getHeaders. > > > Can't get it to work ( S.getHeaders(List(("User-Agent",""))) returns > > ("User-Agent", )). I guess I'm not calling it right. > > -- > Lift, the simply functional web frameworkhttp://liftweb.net > Beginning Scalahttp://www.apress.com/book/view/1430219890 > Follow me:http://twitter.com/dpp > Git some:http://github.com/dpp --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---