Added methods to build an HTTP query string