HttpBrowser
:followRedirects()
to enable the following redirects:HttpRequest
represents just a single request; clean and simple.HttpBrowser
emulates browsing of a website (i.e. set of URLs) like a browser. Besides sending requests, it also stores and resends cookies, maintaining the current user session. Moreover, the HttpBrowser
uses new request on redirection following, allows common request headers for all the requests etc.-Dhttps.protocols=TLSv1.1,TLSv1.2
which configures the JVM to specify which TLS protocol version should be used during HTTPS connections.