Add support for defining own useragent and referer