Activation error 405


Hi, we are just staring out with a trial to test Murano, and are having some problems activating a device using the following curl statement:

curl \ -H “Content-Type: application/x-www-form-urlencoded; charset=utf-8” \ -d “vendor=e5aig1rcxewb3xr&model=e5aig1rcxewb3xr&sn=000001”

Resultis in:

HTTP/1.1 405 Method Not Allowed
curl: (6) Could not resolve host: -H
curl: (6) Could not resolve host: Content-Type
curl: (6) Could not resolve host: -d
curl: (6) Could not resolve host: vendor=e5aig1rcxewb3xr&model=e5aig1rcxewb3xr&sn=000001

What could be the reson for this error?


Hi Frank,

This is because the Method for the activate call is POST and cURL’s default method is GET. Try adding this option to your request: -X POST.

Happy to help,


Thank you Martin, looks like we are POSTing Ok now, however we now get this error:

TTP/1.1 415 Unsupported Media Type

The curl we are sending via the MAC terminal app is:

curl -X POST \ -H “Content-Type: application/x-www-form-urlencoded; charset=utf-8” \ -d “vendor=NNNig1rcxewb3xr&model=NNNig1rcxewb3xr&sn=000002”

Any help with this one please?




Do you mean to include those back slashes in your cURL request? My guess is that you are entering that line as is, which would be an invalid activate call.

I think back slashes are an escape character in BASH:

Try sending your request without those special characters:

curl -X POST -H "Content-Type: application/x-www-form-urlencoded; charset=utf-8" -d "vendor=NNNig1rcxewb3xr&model=NNNig1rcxewb3xr&sn=000002"