Einzelnen Beitrag anzeigen

mjustin

Registriert seit: 14. Apr 2008
3.017 Beiträge
 
Delphi 2009 Professional
 
#13

AW: FritzBox auslesen - Problem SOAP-Abfrage

  Alt 25. Sep 2025, 15:18
Zu diesem Thema habe ich auch schon einiges, nicht wirklich erquickendes zur Lösung gefunden.
TStringlist funktionert mit POST auch betreff XML einwandfrei.
Nein, das ist nicht der Fall. In https://blog.habarisoft.com/2015/03/...-6-https-post/ habe ich auf die Antwort eines Indy-Entwicklers verlinkt (https://stackoverflow.com/a/28493431/80901):

Zitat:
You are using the wrong version of Post() to begin with.

You are using the overloaded version of Post() that accepts a TStrings as input. That version is intended for posting HTML webforms in application/x-www-form-urlencoded format, where the TStrings is expected to contain name=value strings that get encoded according to W3C's rules for submitting webforms. That is why you are seeing your XML being encoded the way it is.
Michael Justin

Geändert von mjustin (25. Sep 2025 um 15:20 Uhr) Grund: URL ergänzt
  Mit Zitat antworten Zitat