Vote count:
0
I have the following code:
def http = new HTTPBuilder( 'http://localhost:8080' )
http.post( path: '/this/is/my/path/'+variable) { resp ->
println "POST Success: ${resp.statusLine}"
assert resp.statusLine.statusCode == 201
}
I only want to execute that request, I have a method in another application that when there is a request in that url, I see a result. Problem is that I don't see nothing. am I in the right way? or can you tell me another different that works? Thanks
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire