HttpBrowser
is a tool just for that. It sends requests for you; handles 301 and 302 redirections automatically, reads and preserve cookies across the requests, and so on.HttpBrowser
instance handles all the cookies, allowing the session to be tracked while browsing using HTTP and supports keep-alive persistent connections.