cancel
Showing results for 
Search instead for 
Did you mean: 

How to print HTTP method 'GET' or 'POST' or 'PUT'?

Highlighted
New Member

How to print HTTP method 'GET' or 'POST' or 'PUT'?

I am trying to print the http method of the REST request in the groovy log but have had no luck yet. I want the script to be able to print whether the request was a GET or PUT or POST or DELETE etc... Any idea?

Thanks,

AK

New Here?
Join us and watch the welcome video:
Building with the Collaborator API

Help Documenation
The Collaborator API is a JSON-RPC API that lets you integrate with Collaborator 9.0 and above. For more information about how the API works, check out the API description here:


Sample Plugins
For an example of an add-in that uses the API, take a look at the Microsoft Word Add-in for Collaborator:


We list all the great plugins our network has already built on this page on the SmartBear website.

Description
SBC2020
Top Kudoed Authors