Is there a way in Ant (using Groovy?) to post info to an http URL and then parse the response?
问题 I've found a way to read an HTML page in Ant with Groovy + HTMLCleaner (see: Parse HTML using with an Ant Script ) but I am unable to find a way to first POST some data to a URL and then get a response and be able to parse that with HTMLCleaner (or something similar). Is this posible? 回答1: You can use the groovy REST client, which is part of the HTTPBuilder project. <target name="invoke-webservice"> <taskdef name="groovy" classname="org.codehaus.groovy.ant.Groovy" classpathref="build.path"/>