Konfigurationsdatei-Upload mit XML API Fehler bei "400 Bad Request"

Konfigurationsdatei-Upload mit XML API Fehler bei "400 Bad Request"

14462
Created On 04/02/19 12:48 PM - Last Modified 03/26/21 17:34 PM


Symptom


Konfigurationsdatei-Upload zum firewall using XML API Fails with "400 Bad
SSL Request"-Handshake wird erfolgreich abgeschlossen, "100 Continue"-Antwort wird angezeigt und schlägt dann mit "400 Bad Request" fehl.


Cause


Eines der häufigsten Probleme ist der falsche Inhaltstyp von Mehrteil-/Formulardaten.

Resolution


Für diesen Vorgang muss der richtige Inhaltstyp von Mehrteil-/Formulardaten verwendet werden.
Wenn Sie Curl verwenden, verwenden Sie "--form file=@config.xml" anstelle von "--data" oder einem anderen POST Typ.

Beispiel: curl --form file=@fw-config.xml https://<fwip>/api/?type=import&category=configuration&key=</fwip> <key></key>


Additional Information


Weitere Informationen zur Syntax finden Sie auf der Hauptseite von Curl.
https://curl.haxx.se/docs/manpage.html


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000PLN4CAO&lang=de&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language