Hello, Martin
I tried to invoke the following request using Fiddler:
GET http://localhost:8080/rest/settoken?username=joedoe&password=12345&token=12345
User-Agent: Fiddler
Host: localhost:8080
Content-Type: text/html;charset=utf-8
Authentication: Basic am9lZG9lOjEyMzQ1
But I get following response:
HTTP/1.1 401 Unauthorized
Cache-Control: private
Content-Type: text/html; charset=utf-8
Server: Microsoft-IIS/8.0
Set-Cookie: CMSPreferredCulture=en-US; expires=Sat, 13-Dec-2014 20:58:03 GMT; path=/; HttpOnly
Set-Cookie: ASP.NET_SessionId=bbljwthjctinhsfysnnj4ye5; path=/; HttpOnly
X-AspNet-Version: 4.0.30319
WWW-Authenticate: Basic realm="CMS REST Service"
X-Frame-Options: SAMEORIGIN
X-SourceFiles: =?UTF-8?B?QzpcaW5ldHB1Ylx3d3dyb290XEtlbnRpY29DTVM3XFJFU1RTZXJ2aWNlLnN2Y1xzZXR0b2tlbg==?=
X-Powered-By: ASP.NET
Date: Fri, 13 Dec 2013 20:58:03 GMT
Content-Length: 6036
I enabled REST services in Kentico, I added webhttpbinding and rest service in web.config
Why I get this error?
Thanks for your reply