get user-agent from http header
and add ua into the records