# POST/GET Method HTTPRequest

**URL:** <https://community.wowza.com/t/post-get-method-httprequest/93582>\
**Category:** Wowza Streaming Engine\
**Tags:** wowza-streaming-server-java-api\
**Created:** [July 22, 2021, 1:09pm UTC](https://community.wowza.com/t/post-get-method-httprequest/93582 "2021-07-22T13:09:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Julia\_M](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@Julia\_M](https://community.wowza.com/u/Julia_M)\
**Post date:** [July 22, 2021, 1:09pm UTC](https://community.wowza.com/t/post-get-method-httprequest/93582/1 "2021-07-22T13:09:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)\
**Post date:** [July 23, 2021, 12:05am UTC](https://community.wowza.com/t/post-get-method-httprequest/93582/2 "2021-07-23T00:05:25Z")

</div>

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](https://www.wowza.com/docs/how-to-query-the-wowza-streaming-engine-rest-api)
