POST/GET Method HTTPRequest

Hi,
I want to write a method in a custom module that will get the name of the stream and then convert it to JSON format. I use pipedream and I already have a url connection to it, but now I don’t know how to send stream name to this server because POST/GET methods are spelled differently in wowza IDE.

The Accept and Content-Type headers instruct the requests and responses to use JSON syntax. The charset header specifies that the requests and responses use UTF-8 character encoding. The headers can also be specified discretely, as in:

-H 'Accept: application/json' 
-H 'Content-Type: application/json'
-H 'charset: utc-8'

Do please use the headers Accept and Content-Type in your REST API HTTP requests in order to receive a JSON formatted response.

curl -X GET --header 'Accept:application/json; charset=utf-8' http://127.0.0.1:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_/applications

https://www.wowza.com/docs/how-to-query-the-wowza-streaming-engine-rest-api