Hamila Mohamed Amine
Hamila Mohamed Amine

Reputation: 290

how to use the POST method ( rest plugin - grails )?

I'm using the grails plugin: REST client facilities I can use the method Get like this (code from the grails rest plugin page):

withHttp(uri: "http://www.google.com") {
   def html = get(path : '/search', query : [q:'Groovy'])
   assert html.HEAD.size() == 1
   assert html.BODY.size() == 1
}

Does anyone know how to do the Post method?

Upvotes: 0

Views: 527

Answers (1)

dmahapatro
dmahapatro

Reputation: 50245

You can refer HTTPBuilder POST.

Upvotes: 1

Related Questions