WinHTTP, sending a XML-File

DanjoDanjo Member Posts: 12
HI,

I am trying to send a XML-File through a HTTP-Port to a server.
I know that i can get a responsestream, but is there a way to do it the other way round?

My current Code:
IF ISCLEAR(xmlDoc) THEN
  CREATE(xmlDoc);
xmlDoc.load(PathEx);

IF ISCLEAR(WinHttpReq) THEN
  CREATE(WinHttpReq);
WinHttpReq.Open('GET',VarHyperlink,FALSE);
WinHttpReq.SetRequestHeader('FileName','NAVISIONSYSTEMID_20091006_MAExport_Win.xml');
WinHttpReq.Send;
IF NOT WinHttpReq.WaitForResponse() THEN
  ERROR('Timed out');

Now I want to send the xmlDoc as Value for the argument "FileContent".

Comments

Sign In or Register to comment.