Force preemptive authentication in$xwiki.getURLContent() does not forward credentials
Issue Type:
BugImprovement
2 comments
Thomas Mortagne on 15/Nov/24 09:23
So I am pretty sure that the Apache HttpClient ignores the credentials given.
I don't think it ignores them, but by default the HTTP client is sending the credentials when asked for them (when getting a 401).
What you seems to want (and what you apparently did in the pull request) is to force preemptive authentication.
Thomas Mortagne on 15/Nov/24 09:25
bq. So I am pretty sure that the Apache HttpClient ignores the credentials given.
I don't think it ignores them, but by default the HTTP client is sending the credentials when asked for them (when getting a [ 401|https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/401]).
What you seems to want (and what you apparently did in the pull request) is to force preemptive authentication.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.