[root@myalf alfresco-5.2.3]# curl -vk 'http://myalf.mydomain.test:8080/alfresco/s/api/login' -X POST -d '{"username":"admin","password":"admin"}' -H "Content-type: application/json" * About to connect() to myalf.mydomain.test port 8080 (#0) * Trying 192.168.11.152... * Connected to myalf.mydomain.test (192.168.11.152) port 8080 (#0) > POST /alfresco/s/api/login HTTP/1.1 > User-Agent: curl/7.29.0 > Host: myalf.mydomain.test:8080 > Accept: */* > Content-type: application/json > Content-Length: 39 > * upload completely sent off: 39 out of 39 bytes < HTTP/1.1 200 OK < Server: Apache-Coyote/1.1 < Cache-Control: no-cache < Expires: Thu, 01 Jan 1970 00:00:00 GMT < Pragma: no-cache < Content-Type: application/json;charset=UTF-8 < Content-Length: 79 < Date: Tue, 10 Jul 2018 17:32:59 GMT < { "data": { "ticket":"TICKET_79ad3bc4178a5ec95ba361406faedefb1125ab60" } * Connection #0 to host myalf.mydomain.test left intact }[root@myalf alfresco-5.2.3]# curl -vk 'http://myalf.mydomain.test:8080/alfresco/api/-default-/public/cmis/versions/1.1/browser?alf_ticket=TICKET_79ad3bc4178a5ec95ba361406faedefb1125ab60' * About to connect() to myalf.mydomain.test port 8080 (#0) * Trying 192.168.11.152... * Connected to myalf.mydomain.test (192.168.11.152) port 8080 (#0) > GET /alfresco/api/-default-/public/cmis/versions/1.1/browser?alf_ticket=TICKET_79ad3bc4178a5ec95ba361406faedefb1125ab60 HTTP/1.1 > User-Agent: curl/7.29.0 > Host: myalf.mydomain.test:8080 > Accept: */* > < HTTP/1.1 401 Unauthorized < Server: Apache-Coyote/1.1 < Set-Cookie: JSESSIONID=A42EBFC151DC0A9316073E479B95E8E8; Path=/alfresco; HttpOnly < WWW-Authenticate: Negotiate < Content-Type: text/html;charset=UTF-8 < Content-Length: 134 < Date: Tue, 10 Jul 2018 17:33:26 GMT <

Please log in.

* Connection #0 to host myalf.mydomain.test left intact