Curl (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „{{note|Noch in Bearbeitung}} == Links == [https://curl.haxx.se/docs/manpage.html https://curl.haxx.se/docs/manpage.html] Zurück zu Ubuntu#C (Client)|Ub…“) |
|||
Zeile 1: | Zeile 1: | ||
{{note|Noch in Bearbeitung}} | {{note|Noch in Bearbeitung}} | ||
== Installation == | |||
<pre> | |||
sudo apt-get install -y curl | |||
</pre> | |||
== Verwendung == | |||
=== Upload einer Datei === | |||
<pre> | |||
curl -X POST \ | |||
-H "Content-Type: multipart/form-data" \ | |||
-H "Cookie: JSESSIONID=A745FE67D2D13D24526261CBBA6883FB; XSRF-TOKEN=36af42c6-7988-4ccb-a11d-6bb9ebdd3b69" \ | |||
-F "file=@/mnt/c/Users/Martin/Downloads/Test.xlsx" \ | |||
http://localhost:8080/import-test/rest/importer/excel?_csrf=36af42c6-7988-4ccb-a11d-6bb9ebdd3b69 | |||
</pre> | |||
== Links == | == Links == |
Version vom 15. Januar 2020, 12:14 Uhr
Noch in Bearbeitung
Installation
sudo apt-get install -y curl
Verwendung
Upload einer Datei
curl -X POST \ -H "Content-Type: multipart/form-data" \ -H "Cookie: JSESSIONID=A745FE67D2D13D24526261CBBA6883FB; XSRF-TOKEN=36af42c6-7988-4ccb-a11d-6bb9ebdd3b69" \ -F "file=@/mnt/c/Users/Martin/Downloads/Test.xlsx" \ http://localhost:8080/import-test/rest/importer/excel?_csrf=36af42c6-7988-4ccb-a11d-6bb9ebdd3b69
Links
https://curl.haxx.se/docs/manpage.html
Zurück zu Ubuntu