parser: Add User-Agent.

Signed-off-by: Martin Stone <martin@d7415.co.uk>
(cherry picked from commit 97273492927199d76b87e2170e7f2f14aa83879b)