HTTP client library in Groovy -


i interested in querying rest api using groovy. found httpurlclient seems should want, groovy console complains "unable resolve class httpurlclient" found link has sample code httpurlclient: http://groovy.codehaus.org/modules/http-builder/doc/httpurlclient.html

but copy-pasting code gives same error.

i looked using httpbuilder seems might work, gave similar errors well.

any idea need these work?

thanks

have installed library?

http://groovy.codehaus.org/modules/http-builder/download.html

edit

if want use snapshot release, can add resolver in annotation, rather editing xml file;

@grabresolver( name='codehaus.snapshot', root='http://snapshots.repository.codehaus.org', m2compatible='true' ) @grab( 'org.codehaus.groovy.modules.http-builder:http-builder:0.5.2-snapshot' ) import groovyx.net.http.* 

at top of script should it


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -