OiO.lk Blog PHP How to send XML text with HTTP.GET with my Delphi app?
PHP

How to send XML text with HTTP.GET with my Delphi app?


I’m trying to send a variable that has XML text using HTTP GET to a php script at server side with code like this:

XML := a XML formated text;
with netHTTP do begin
            Response := GET('https://myServer.gr/postXML.php',
                            nil,
                            [TNetHeader.Create('NAME','user'),
                            TNetHeader.Create('KEY','pass'),
                            TNetHeader.Create('XML',XML)]);

but I receive "error adding header:(87) The parameter is incorrect"

In my php script I need to use XML contents as a string. How can I do it?



You need to sign in to view this answers

Exit mobile version