ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gautam Guliani <gaut...@grassroots-tech.com>
Subject Get with Basic Auth
Date Tue, 06 Feb 2001 16:52:05 GMT
Folks,
         I needed to access a URL protected by basic auth so I extended the 
GET task
to do so. It does Java2 style HTTP basic authentication.

Would people on this list be interested in this extension?

Here's the relevant portion of a typical build file

<target name="protectedTask" >
     <taskdef name="getBA"
       classname="com.grassroots_tech.util.ant.HttpGetBasicAuth"/>
     <getBA src="http://some/protected/url/"
       username="seeker" password="supersecret" dest="log.out" />
</target>



--
Gautam Guliani                          Email:  gautamg@grassroots-tech.com
Partner                                 Cell:   917.945.5353
Grassroots Technology, Inc.             Office: 646.375.2036
116 W. 23rd St, Suite 500               http://www.grassroots-tech.com/
NY, NY  10011-9998


Mime
View raw message