You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2004/07/21 23:55:50 UTC

DO NOT REPLY [Bug 30244] New: - [PATCH] Add ability to set the request method when using the condition

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30244>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=30244

[PATCH] Add ability to set the request method when using the <http/> condition

           Summary: [PATCH] Add ability to set the request method when using
                    the <http/> condition
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: robert.clark@quest.com


Currently, the <http/> condition does an unconditional GET of a URL to
determine if it is available. This is generally not a problem unless you
need to check whether a large document is available. Then you have to 
download the whole thing.

The attached patch adds the ability to specify the HTTP request method when
checking a URL. This allows the use of an HTTP "HEAD" request to check to see 
if a document is available without downloading the whole document.

The patch is against the Ant HEAD branch as of this date and include a minor 
documentation change as well as the addition of a simple unit test for the
updated <http/> condition.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org