Hi,

I am trying to set User-Agent header attribute for an HTTP request with following code snippet.

 
let $content := http:send-request(<http:request method='get' status-only='false' User-Agent='Mozilla/5.0'/>, $url)
 let $body := $content[2]
 return $body

But It is sending "Java/1.7.0_02" as User-Agent header attribute. This has been taken from wireshark:

GET / HTTP/1.1
User-Agent: Java/1.7.0_02
Host: istanbul.olx.com.tr
Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
Connection: keep-alive

Do we have any way to set the user-agent attribute?

Thanks

Erol Akarsu