Bug 49788

Summary: [PATCH] set Basic Auth on HTTP condition
Product: Ant Reporter: Nick Pellow <npellow>
Component: CoreAssignee: Ant Notifications List <notifications>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: nightly   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X 10.5   
Attachments: patch file

Description Nick Pellow 2010-08-19 21:55:31 UTC
Created attachment 25917 [details]
patch file


Attached is a patch for Ant that will check for any userinfo in the URL supplied to the http condition.
If available, then this will be used as the Basic-Auth header when making the request.
This allows http requests to be made to services that are protected by basic-auth.
e.g. http://username:password@localhost:6060/foo/ready.json

I have tested this manually, however could not see a good reliable way to unit test this.
If no userinfo element is suppliued in the URL, then the connection behaves the same as before.