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}"
}