From 3384312f1297a1ccb7c67c540a125e04da96a883 Mon Sep 17 00:00:00 2001 From: Juri Dispan Date: Thu, 12 Sep 2024 08:12:02 +0200 Subject: [PATCH] httpie: update German translation; http: add German translation, update page (#13640) --- pages.de/common/http.md | 36 ++++++++++++++++++++++++++++++++++++ pages.de/common/httpie.md | 37 +++++++++---------------------------- pages/common/http.md | 2 +- 3 files changed, 46 insertions(+), 29 deletions(-) create mode 100644 pages.de/common/http.md diff --git a/pages.de/common/http.md b/pages.de/common/http.md new file mode 100644 index 000000000..3f4f8c22b --- /dev/null +++ b/pages.de/common/http.md @@ -0,0 +1,36 @@ +# http + +> HTTPie: ein benutzerfreundliches HTTP-Tool. +> Weitere Informationen: . + +- Sende eine GET-Anfrage (Zeigt ddie Header und den Body der Antwort): + +`http {{https://example.com}}` + +- Zeige nur den angegebenen Teil der Anfrage und der Antwort (`H`: Header der Anfrage, `B`: Body der Anfrage, `h`: Header der Antwort, `b`: Body der Antwort, `m`: Metadaten der Antwort): + +`http --print {{H|B|h|b|m|Hh|Hhb|...}} {{https://example.com}}` + +- Spezifiziere die zu nutzende HTTP-Methode und nutze den angegebenen Proxy: + +`http {{GET|POST|HEAD|PUT|PATCH|DELETE|...}} --proxy {{http|https}}:{{http://localhost:8080|socks5://localhost:9050|...}} {{https://example.com}}` + +- Folge `3xx`-Umleitungen und spezifiziere zusätzliche Header für die Anfrage: + +`http {{-F|--follow}} {{https://example.com}} {{'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'}}` + +- Authentisiere gegenüber einem Server mithilfe unterschiedlicher Anthentisierungsmethoden: + +`http --auth {{username:password|token}} --auth-type {{basic|digest|bearer}} {{GET|POST|...}} {{https://example.com/auth}}` + +- Erstelle eine Anfrage ohne diese zu senden (ähnlich zu dry-run): + +`http --offline {{GET|DELETE|...}} {{https://example.com}}` + +- Nutze die angegebene Session für persistente benutzerdefinierte Header, Credentials für die Authentisierung und Cookies: + +`http --session {{session_name|path/to/session.json}} {{--auth username:password https://example.com/auth API-KEY:xxx}}` + +- Lade eine Datei in ein Formular hoch (das folgende Beispiel geht davon aus, dass das Formularfeld als `` definiert ist): + +`http --form {{POST}} {{https://example.com/upload}} {{cv@path/to/file}}` diff --git a/pages.de/common/httpie.md b/pages.de/common/httpie.md index 72440abd3..700b2aa6d 100644 --- a/pages.de/common/httpie.md +++ b/pages.de/common/httpie.md @@ -1,36 +1,17 @@ # httpie -> Ein benutzerfreundliches HTTP-Tool. -> Weitere Informationen: . +> Managementschnittstelle für HTTPie. +> Siehe auch: `http`, das eigentliche Tool. +> Weitere Informationen: . -- Sende eine GET-Anfrage (Standardmethode ohne Anfragedaten): +- Suche nach Aktualisierungen für `httpie`: -`http {{https://example.com}}` +`httpie cli check-updates` -- Sende eine POST-Anfrage (Standardmethode mit Anfragedaten): +- Zeige die installierten Plugins für `httpie`: -`http {{https://example.com}} {{hello=World}}` +`httpie cli plugins list` -- Sende eine POST-Anfrage mit einer Datei als Eingabe: +- Installiere/aktualisiere/deinstalliere Plugins: -`http {{https://example.com}} < {{file.json}}` - -- Sende eine PUT-Anfrage mit einem bestimmten JSON-Body: - -`http PUT {{https://example.com/todos/7}} {{hello=world}}` - -- Sende eine DELETE-Anfrage mit einem bestimmten Anfrage-Header: - -`http DELETE {{https://example.com/todos/7}} {{API-Key:foo}}` - -- Zeige den gesamten HTTP-Austausch (sowohl Anfrage als auch Antwort): - -`http -v {{https://example.com}}` - -- Lade eine Datei herunter: - -`http --download {{https://example.com}}` - -- Folge Umleitungen und zeige Zwischenanfragen und -antworten: - -`http --follow --all {{https://example.com}}` +`httpie cli plugins {{install|upgrade|uninstall}} {{plugin_name}}` diff --git a/pages/common/http.md b/pages/common/http.md index af40d74ad..39a739aa5 100644 --- a/pages/common/http.md +++ b/pages/common/http.md @@ -31,6 +31,6 @@ `http --session {{session_name|path/to/session.json}} {{--auth username:password https://example.com/auth API-KEY:xxx}}` -- Upload a file to a form (the example below assumes form field is ``): +- Upload a file to a form (the example below assumes that the form field is ``): `http --form {{POST}} {{https://example.com/upload}} {{cv@path/to/file}}`