VMware Cloud Community
Shraga
Contributor
Contributor
Jump to solution

VCD curl returning Mark bundle as not supporting multiuse

Hi,

I'm running the command: 

curl -k -I --header "Authorization: basic <base64 info>" -v --request GET https://<server url>/api/sessions

The result isn't providing info: 


* Trying <ip>:443...
* TCP_NODELAY set
* Connected to <server name> (IP) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server did not agree to a protocol
* Server certificate:
* subject: C=XX; O=XXX; CN=<server name>
* start date: Dec 16 13:30:28 2021 GMT
* expire date: Dec 16 13:30:28 2022 GMT
* issuer: C=XX; L=<location>; O=<owner>; CN=<type>
* SSL certificate verify ok.
> GET /api/sessions HTTP/1.1
> Host: <server name>
> User-Agent: curl/7.68.0
> Accept: application/*;version=36.3
> Authorization: basic <base64 info>
>
* Mark bundle as not supporting multiuse
< HTTP/1.1 400 Bad Request
HTTP/1.1 400 Bad Request
< Date: Thu, 09 Jun 2022 06:11:46 GMT
Date: Thu, 09 Jun 2022 06:11:46 GMT
< X-VMWARE-VCLOUD-REQUEST-ID: 30dcb98d-3fda-428e-b0d5-ddf60d06d5aa
X-VMWARE-VCLOUD-REQUEST-ID: 30dcb98d-3fda-428e-b0d5-ddf60d06d5aa
< X-VMWARE-VCLOUD-CEIP-ID: fb11f300-cce0-45c2-83a8-e4d2345d476b
X-VMWARE-VCLOUD-CEIP-ID: fb11f300-cce0-45c2-83a8-e4d2345d476b
< Content-Type: application/vnd.vmware.vcloud.error+xml;version=36.3
Content-Type: application/vnd.vmware.vcloud.error+xml;version=36.3
< X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME: 0,0
X-VMWARE-VCLOUD-REQUEST-EXECUTION-TIME: 0,0
< Cache-Control: no-store, must-revalidate
Cache-Control: no-store, must-revalidate
< Content-Length: 688
Content-Length: 688

 

Any advise?

1 Solution

Accepted Solutions
moellerjot
Enthusiast
Enthusiast
Jump to solution

Hi Shraga, 

try this: 

#Tutorial: https://kb.vmware.com/s/article/56948
echo -n username@system:password |base64
dXNlcm5hbWVAc3lzdGVtOnBhc3N3b3Jk

#version "35.2"= ~ vCD 10.3
curl -k -I --header "Accept: application/*;version=35.2" --header "Authorization: Basic <dXNlcm5hbWVAc3lzdGVtOnBhc3N3b3Jk>" --request POST https://vCD API public address/api/sessions

or read this: kb56948 

 

View solution in original post

1 Reply
moellerjot
Enthusiast
Enthusiast
Jump to solution

Hi Shraga, 

try this: 

#Tutorial: https://kb.vmware.com/s/article/56948
echo -n username@system:password |base64
dXNlcm5hbWVAc3lzdGVtOnBhc3N3b3Jk

#version "35.2"= ~ vCD 10.3
curl -k -I --header "Accept: application/*;version=35.2" --header "Authorization: Basic <dXNlcm5hbWVAc3lzdGVtOnBhc3N3b3Jk>" --request POST https://vCD API public address/api/sessions

or read this: kb56948