Groovy Http POST/GET Class is a simple helper class for doing POST and GET calls from Groovy. It opens a socket to the requested host, and writes to the socket using getOutputStream() and PrintWriter(). It reads the response from the server using DataInputStream() and getInputStream().