[root@xoruxibm stor2rrd]# curl -v -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '' -u admin:Qwertyu12345 -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'
* About to connect() to 10.10.1.10 port 3033 (#0)
* Trying 10.10.1.10...
* Connected to 10.10.1.10 (10.10.1.10) port 3033 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: CN=vtrial.damain.loc,O=Dell Inc,L=Eden Prairie,ST=Minnesota,C=US
* start date: Jul 21 14:26:59 2018 GMT
* expire date: Jul 13 14:26:59 2048 GMT
* common name: vtrial.damain.loc
* issuer: CN=vtrial.damain.loc,O=Dell Inc,L=Eden Prairie,ST=Minnesota,C=US
* Server auth using Basic with user 'admin'
> POST /api/rest/ApiConnection/Login HTTP/1.1
> Authorization: Basic YWRtaW46UXdlcnR5MTIz
> User-Agent: curl/7.29.0
> Host: 10.10.1.10:3033
> Accept: */*
> content-type: application/json
> x-dell-api-version: 2.0
> Content-Length: 0
>
< HTTP/1.1 400 Bad Request
HTTP/1.1 400 Bad Request
< Server: Apache-Coyote/1.1
Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=1MdRahIvpX3UeDzQEsxa2EeP; Path=/api; Secure
Set-Cookie: JSESSIONID=1MdRahIvpX3UeDzQEsxa2EeP; Path=/api; Secure
< Content-Type: text/html;charset=utf-8
Content-Type: text/html;charset=utf-8
< Content-Length: 1199
Content-Length: 1199
< Date: Thu, 16 Aug 2018 09:22:54 GMT
Date: Thu, 16 Aug 2018 09:22:54 GMT
< Connection: close
Connection: close
<
JBoss Web/7.2.0.Final - JBWEB000064: Error report JBWEB000065: HTTP Status 400 - java.io.EOFException: No content to map to Object due to end of input
JBWEB000309: type JBWEB000067: Status report
JBWEB000068: message java.io.EOFException: No content to map to Object due to end of input
JBWEB000069:* Closing connection 0
description JBWEB000120: The request sent by the client was syntactically incorrect.
JBoss Web/7.2.0.Final
[root@xoruxibm stor2rrd]#
[root@xoruxibm stor2rrd]#
[root@xoruxibm stor2rrd]#
[root@xoruxibm stor2rrd]# curl -v -k -i https://10.10.1.10:3033/api/rest/ApiConnection/Login -X POST -d '{}' -u admin:Qwertyu12345 -H 'content-type: application/json' -H 'x-dell-api-version: 2.0'
* About to connect() to 10.10.1.10 port 3033 (#0)
* Trying 10.10.1.10...
* Connected to 10.10.1.10 (10.10.1.10) port 3033 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA
* Server certificate:
* subject: CN=vtrial.damain.loc,O=Dell Inc,L=Eden Prairie,ST=Minnesota,C=US
* start date: Jul 21 14:26:59 2018 GMT
* expire date: Jul 13 14:26:59 2048 GMT
* common name: vtrial.damain.loc
* issuer: CN=vtrial.damain.loc,O=Dell Inc,L=Eden Prairie,ST=Minnesota,C=US
* Server auth using Basic with user 'admin'
> POST /api/rest/ApiConnection/Login HTTP/1.1
> Authorization: Basic YWRtaW46UXdlcnR5MTIz
> User-Agent: curl/7.29.0
> Host: 10.10.1.10:3033
> Accept: */*
> content-type: application/json
> x-dell-api-version: 2.0
> Content-Length: 2
>
* upload completely sent off: 2 out of 2 bytes
< HTTP/1.1 200 OK
HTTP/1.1 200 OK
< Server: Apache-Coyote/1.1
Server: Apache-Coyote/1.1
< Set-Cookie: JSESSIONID=D5TbO8k2M9Spc9-BM7UiXnBW; Path=/api; Secure
Set-Cookie: JSESSIONID=D5TbO8k2M9Spc9-BM7UiXnBW; Path=/api; Secure
< Content-Type: application/json
Content-Type: application/json
< Transfer-Encoding: chunked
Transfer-Encoding: chunked
< Date: Thu, 16 Aug 2018 09:23:41 GMT
Date: Thu, 16 Aug 2018 09:23:41 GMT
<
* Connection #0 to host 10.10.1.10 left intact
{"hostName":"10.10.1.10","connected":true,"locale":"en_US","apiBuild":311,"commandLine":false,"useHttps":false,"provider":"EnterpriseManager","userName":"admin","source":"REST","sessionKey":1532326992903,"application":"","apiVersion":"2.2","userId":434226,"providerVersion":"15.3.1.300","minApiVersion":"0.1","webServicesPort":3033,"connectionKey":"","secureString":"","applicationVersion":"","instanceId":"0","objectType":"ApiConnection","instanceName":"ApiConnection"}[root@xoruxibm stor2rrd]#