Skip to content

Instantly share code, notes, and snippets.

View alexfrieden's full-sized avatar

Alexander Frieden alexfrieden

  • Inari Agriculture
  • Somerville, MA
View GitHub Profile
@Grab(group='org.codehaus.groovy.modules.http-builder', module='http-builder', version='0.6')
@Grab(group='net.sf.json-lib', module='json-lib', version='2.2.3', classifier='jdk15')
import groovyx.net.http.RESTClient
import static groovyx.net.http.ContentType.*
def http = new RESTClient( 'http://localhost:7474/db/data/transaction/commit', JSON)
http.setProxy('localhost', 8888, 'http')
def response = http.post(body: [
statements: [