Zum Hauptinhalt springen

Erstellen eines Anhangs zu einem Datensatz mit cURL

Wie man einen Anhang zu einem Datensatz mit cURL

Ota Rádl avatar
Verfasst von Ota Rádl
Vor über 3 Jahren aktualisiert

hinzufügt

Befehle:

curl -H "Accept: application/xml" -k -u user:password -X PUT -L https://url.cil:5434/c/jmeno_firmy/cenik/code:LAMPA1/prilohy/new/LAMPA1.jpg-T "c:\obrazky\LAMPA1.jpg" -H "Content-Type: image/jpeg "curl -H "Accept: application/xml" -k -u user:password -X PUT -L https://url.cil:5434/c/jmeno_firmy/cenik/code:LAMPA2/prilohy/new/LAMPA2.jpg-T "c:\obrazky\LAMPA2.jpg" -H "Content-Type: image/jpeg"

Curl.exe ist ein frei herunterladbares Programm

LAMPA2

ist ein Preislistenartikel

"c:\obrazky\LAMPA2.jpg"

ist der Pfad zu der Datei, die wir importieren möchten

Hat dies deine Frage beantwortet?