2009-09-08 3 views

답변

3

소스를 읽는 것만으로 Http 객체에서 http.client.params.setParameter ("User-Agent", "Cowbells")를 호출해야합니다. 이거 해봤 니?

15

< : < 연산자를 사용하여 헤더 정보와 함께 요청을 추가해야합니다. 이처럼 :

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

This은 잘 작동합니다 :

url("http://example.com").addHeader("User-Agent", "Mozilla...") 
관련 문제