# Connect stream Api call is not working

**URL:** <https://community.wowza.com/t/connect-stream-api-call-is-not-working/46248>\
**Category:** Wowza Streaming Engine\
**Created:** [February 17, 2016, 11:37am UTC](https://community.wowza.com/t/connect-stream-api-call-is-not-working/46248 "2016-02-17T11:37:37Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navin\_Chandran](https://avatars.discourse-cdn.com/v4/letter/n/9fc29f/32.png) [@Navin\_Chandran](https://community.wowza.com/u/Navin_Chandran)\
**Post date:** [February 17, 2016, 11:37am UTC](https://community.wowza.com/t/connect-stream-api-call-is-not-working/46248/1 "2016-02-17T11:37:37Z")

</div>

Trying to connect a stream using the method provided in the following url

[https://www.wowza.com/docs/stream-management-query-examples](https://www.wowza.com/docs/stream-management-query-examples)

Using

curl -X PUT --header ‘Accept:application/json; charset=utf-8’ --header ‘Content-type:application/json; charset=utf-8’ “[http://localhost:8087/v2/servers/](http://localhost:8087/v2/servers/)_defaultServer_/vhosts/_defaultVHost_/streamfiles/metallica/actions/connect?connectAppName=testlive&appInstance=_definst_&mediaCasterType=rtp”

**But i am trying to use jquery to connect the stream, my application is MVC,C# using .net framework, i want to use jquery to connect to stream**

**But getting the below error result**

**HTTP/1.1 404 Not Found**

**Content-Type: text/xml; charset=UTF-8**

**Date: Wed, 17 Feb 2016 06:04:02 GMT**

**Accept-Ranges: bytes**

**Server: Restlet-Framework/2.2.2**

**Access-Control-Allow-Origin: \***

**Access-Control-Allow-Methods: OPTIONS,GET,PUT,DELETE,POST**

**Access-Control-Allow-Headers: Content-Type**

**Connection: keep-alive**

**Transfer-Encoding: chunked**

**c2**

**\<?xml version="1.0" encoding="UTF-8" standalone="no"?\>4.2.0`404`The server has not found anything matching the request URI**

**0**

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [February 17, 2016, 10:17am UTC](https://community.wowza.com/t/connect-stream-api-call-is-not-working/46248/2 "2016-02-17T10:17:32Z")

</div>

Hello

A couple of questions:

- What is your stream file name? Here it assumes metallica.stream.

- Do you have the appropriate [CORS headers](https://www.wowza.com/docs/how-to-access-documentation-for-wowza-streaming-engine-rest-api#restUserHTTPHeaders_config) defined?

- Is your app name fixed to be “testlive”?

Should all of this be preconfigured as suggested, please send a zip file of your conf/, logs/, and stream file(s) [to our support team](https://www.wowza.com/portal/help/engine) for review along with your exact cURL request and response.

Thanks!

Matt

---

<div class="post-metadata">

**Author:** ![Adam\_Bardonski](https://avatars.discourse-cdn.com/v4/letter/a/e56c9b/32.png) [@Adam\_Bardonski](https://community.wowza.com/u/Adam_Bardonski)\
**Post date:** [October 25, 2018, 9:15pm UTC](https://community.wowza.com/t/connect-stream-api-call-is-not-working/46248/3 "2018-10-25T21:15:42Z")

</div>

I’ve got exactly the same problem, all other API requests works (like showing, stopping, deleting) but not the example with start a .stream file. I guess the example is not correct, a parameter-name wrong.

---

<div class="post-metadata">

**Author:** ![Ladislav\_Fartak](https://avatars.discourse-cdn.com/v4/letter/l/6a8cbe/32.png) [@Ladislav\_Fartak](https://community.wowza.com/u/Ladislav_Fartak)\
**Post date:** [November 15, 2018, 5:00pm UTC](https://community.wowza.com/t/connect-stream-api-call-is-not-working/46248/4 "2018-11-15T17:00:23Z")

</div>

The URI format for connecting streams as shown in documentation works for Wowza Dev version. For common Wowza version the URI format is:

http://{serveruri}:8087/v2/servers/{server}/vhosts/{vhost}/applications/{app}/streamfiles/{stream}/actions/connect?connectAppName={app}&appInstance={appinst}&mediaCasterType={casterType}

Where:

{serveruri} = URI address of your Wowza Engine Server

{server} = _defaultServer_

{vhost}= _defaultVHost_

{app} = Application name e.g. live

{appinst} = _definst_

{casterType} = rtp or other media like applehls etc.
