http-builder-ng icon indicating copy to clipboard operation
http-builder-ng copied to clipboard

preemptive authentication on basic authentication has no effect

Open marioja opened this issue 4 years ago • 0 comments

I use this code and it has not effect, the first HTTP get does not contain the basic authentication header:

	def result = configure {
		request.uri = url2 
		request.auth.basic username, pw, true
	}.get() {
		response.parser(XML[0]) { config, resp ->
			xml(config, resp).xml
		}

I further checked the code and no code uses the preemptive boolean set in BasicAuth or ThreadSafeAuth.

marioja avatar Jun 26 '20 21:06 marioja