add cookie and user agent.