docs(REST API): content-type is no longer necessary with -T

Because it is no longer set by default to `application/x-www-form-urlencoded` like it was with `--data-binary`.
This commit is contained in:
Julien Fontanet
2022-06-07 23:46:14 +02:00
parent 63bfb76516
commit a5e9f051a2
2 changed files with 0 additions and 2 deletions

View File

@@ -148,7 +148,6 @@ A VHD can be imported on an SR to create a VDI at `/rest/v0/srs/<sr uuid>/vdis`.
```bash
curl \
-X POST \
-H 'Content-Type: application/octet-stream' \
-b authenticationToken=KQxQdm2vMiv7jBIK0hgkmgxKzemd8wSJ7ugFGKFkTbs \
-T myDisk.vhd \
'https://xo.example.org/rest/v0/srs/357bd56c-71f9-4b2a-83b8-3451dec04b8f/vdis?name_label=my_imported_VDI' \

View File

@@ -145,7 +145,6 @@ A VHD can be imported on an SR to create a VDI at `/rest/v0/srs/<sr uuid>/vdis`.
```bash
curl \
-X POST \
-H 'Content-Type: application/octet-stream' \
-b authenticationToken=KQxQdm2vMiv7jBIK0hgkmgxKzemd8wSJ7ugFGKFkTbs \
-T myDisk.vhd \
'https://xo.company.lan/rest/v0/srs/357bd56c-71f9-4b2a-83b8-3451dec04b8f/vdis?name_label=my_imported_VDI' \