Hi all I am wanting to send an XML file I have to a PHP script for processing. I am wanting to use TidHttp and have the following code snippet... var sResponse: String; fsParams: TFileStream; begin fsParams := TFileStream.Create('.\test.xml', fmOpenRead or fmShareDenyWrite); try IdHTTP.Request.ContentType := 'text/xml'; sResponse := IdHTTP.Post('https://secure.dev.gateway.gov.uk/submission', fsParams); ShowMessage(sResponse); except on E: Exception do ShowMessage('Error encountered during POST: ' + E.Message); end; This was from a web site. Not mine ! But I wonder what should happen at the PHP end. When my scripts processes usually things usually I go 'vardata = $_REQUEST[FieldName] to get the value. Than my XML I should do something like
The question I have (which is Delphi related) is. My code doesn't pass the XML file as a param (does it?) how should I do this or am I misunderstanding. Sorry if I have not been clear enough. Thanks Rob |
_______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: delphi@delphi.org.nz Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to delphi-requ...@delphi.org.nz with Subject: unsubscribe