httpal

See the test cases for how to use. Basically it’s a web browser class that keeps cookies, referer, and other state items around.

Caveat: Individual Browsers aren’t thread-safe in any sense of the word. So if you use multiple threads all browsin’, each one should have their own HTTPal::Browser object.