AnsweredAssumed Answered

RESTMAN error Unsupported Media Type when using curl

Question asked by MarkSigda Employee on Oct 17, 2016
Latest reply on Oct 18, 2016 by MarkSigda

I have a RESTMAN bundle.  I can PUT it to my gateway using Firefox RESTClient.  I get an error when using curl for the same operation.


Command is:


curl -u admin:mypassword -X PUT -k -H ‘Content-Type:application/xml’ -d @bundleVoonair.xml -D -




HTTP/1.1 100 Continue


HTTP/1.1 415 Unsupported Media Type

Server: Apache-Coyote/1.1

Content-Type: application/xml

Content-Length: 569

Date: Mon, 17 Oct 2016 16:06:03 GMT


<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<l7:Error xmlns:l7="">



    <l7:Link rel="self" uri=""/>

    <l7:Detail>HTTP 415 Unsupported Media Type. Caused by: MessageBodyReader not found for media type=application/x-www-form-urlencoded, type=class com.l7tech.gateway.api.FolderMO, genericType=class com.l7tech.gateway.api.FolderMO.</l7:Detail>