Common Java functionality for working with HTTP requests