Skip to content

HttpGet getRedirectURL() == null #185

Description

@brianmajor

With the following code, getResponseHeader("Location") returns the redirect URL, but getRedirectURL() returns null.

HttpGet get = new HttpGet(url, false);  // don't follow redirects
get.run();
log.info("response code: " + get.getResponseCode());  // 302
log.info("location: " + get.getResponseHeader("Location"));  // url
log.info("location: " + get.getRedirectURL());  // null

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions