When using groovy’s http-builder with basic authentication the default behavior is to send an unauthenticated request first and resend the request with credentials after receiving a 401 in the first place.
Apache’s Httpclient offers preemptive authentication to send the credentials directly on the first request.
How can I use preemptive auth in Groovy’s http-builder? Any code examples are appreciated.
When using groovy’s http-builder with basic authentication the default behavior is to send an
Share
Based on a JIRA issue you can do something like that :