Add headers into http request and trim url