# Asynchronous HTTP requests

**URL:** <https://community.wowza.com/t/asynchronous-http-requests/34189>\
**Category:** Wowza Streaming Engine\
**Created:** [May 21, 2010, 12:20pm UTC](https://community.wowza.com/t/asynchronous-http-requests/34189 "2010-05-21T12:20:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sander\_Kruger](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@Sander\_Kruger](https://community.wowza.com/u/Sander_Kruger)\
**Post date:** [May 21, 2010, 12:20pm UTC](https://community.wowza.com/t/asynchronous-http-requests/34189/1 "2010-05-21T12:20:09Z")

</div>

Hello,

My application communicates with a web server that does things like authentication and billing. When one or more clients connect to an instance of the application, some actions of a client may lead to the application contacting the web server with an HTTP request.

For example, the client clicks a button which calls a server-side method which sends some info to the web server. In FMS, such requests are asynchronous. So, the server application is not blocked for processing other client requests. It seems that Wowza will block execution of the client’s thread until the web server returns an answer.

I’m using HTTPUtils for the HTTP request. Is there a way to have HTTPUtils work asynchronously by passing a callback? Is there another HTTP class that can do the job?

Regards,

Sander Kruger

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 21, 2010, 12:37pm UTC](https://community.wowza.com/t/asynchronous-http-requests/34189/2 "2010-05-21T12:37:07Z")

</div>

You can use Java HTTPClient in a Wowza module. Take a look at this article:

[http://hc.apache.org/httpclient-3.x/threading.html](http://hc.apache.org/httpclient-3.x/threading.html)

Richard

---

<div class="post-metadata">

**Author:** ![Rafael\_Sobral](https://avatars.discourse-cdn.com/v4/letter/r/87869e/32.png) [@Rafael\_Sobral](https://community.wowza.com/u/Rafael_Sobral)\
**Post date:** [April 10, 2014, 8:23am UTC](https://community.wowza.com/t/asynchronous-http-requests/34189/3 "2014-04-10T08:23:19Z")

</div>

this do not work anymore with Wowza 4

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [April 11, 2014, 10:02am UTC](https://community.wowza.com/t/asynchronous-http-requests/34189/4 "2014-04-11T10:02:26Z")

</div>

Hi,

It should still work in Wowza Streaming Engine 4.x.

Wowza Streaming Engine now includes the Apache HTTPClient 4.1.1 as part of the built in rest service. The version shipped is not the very latest HTTPClient so it will conflict if you try to use a later version.

You should be able to build your module using the builtin classes for reference.

Roger.
