AnsweredAssumed Answered

REST login problem

Question asked by gloriamerecido on Aug 31, 2011
Latest reply on Oct 5, 2011 by frederikheremans1
Im trying to login to activiti-rest from an html page, and I get the following error

Unsupported Media Type
The server is refusing to service the request because the entity of the request is in a format not supported by the requested resource for the requested method.

Any sugestions?

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">
    <title>Stuff by tedd</title>      
</head>

<body>
<h2> Post form</h2>
    <form method="post" action="http://localhost:8080/activiti-rest/service/login">
    text:<input type="text" size =40 name="UserId" id="UserId">
    text:<input type="text" size =40 name="password" id="password">
    <input type=submit value="Submit Post">
    </form>
</body>
</html>

Outcomes