budjb / http-requests

An HTTP client abstraction that provides a common interface to several different client implementations.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Redirect from http to https not implemented

slick666 opened this issue · comments

By design the underlying Java libraries do not redirects that traverse from HTTP to HTTPS and visa versa because it views the two as different protocols.

Original Java bug
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=4620571

Library call that need to be augmented
https://github.com/budjb/http-requests/blob/1.0.2/http-requests-core/src/main/groovy/com/budjb/httprequests/AbstractHttpClient.groovy#L588