Setting User-Agent Header in Scala with Databinders Dispatch Library

scala, scala-dispatch

Solution

You need to append your request with the header info, using the <:< operator. Like this :

url("http://example.com") <:< Map("User-Agent" -> "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)") 

Problem

Does anyone know how to do this?

Original source