User Tools

Site Tools


Sidebar

Computer Science

Germany

Others

Links

groovy:groovy
import groovyx.net.http.ContentType
import groovyx.net.http.HTTPBuilder

def http = new HTTPBuilder("https://something.com")

http.post( path: '/websso/login.pl', body: [username: 'myusername', password: 'mypassword'],
           requestContentType: ContentType.JSON) { resp ->
  return "${resp.statusLine}"
}
groovy/groovy.txt · Last modified: 2017/08/01 22:11 by thomas