I've been trying to use the inetc plug-in to send a xml file content via POST to a webpage...
This xml file is created via NSIS as well using plain FileOpen / FileWrite commands.
I noticed that I get 500 - Internal server error when I'm trying to send it. It troubled me for a long while, since I was able to send plain text before just fine...
Then I finally pointed it out: something bad happens when I'm sending "<" (less than) and ">" (greater than) characters via POST.
I don't know if any of you guys ever had this issue (and I searched the forums for a good while before posting this), but do you know a better way to avoid it other than creating a XML with "=lt;" and "=gt;" to replace the "<" and ">" characters?
Yeah, "&" also gave me the same issue. "<" and ">" didn't work either.
Since I'm already posting, I might just ask something else:
FileRead only reads each line at a time from a file, in order to send in the whole file content, I'm concatenating each line I read in a loop on a variable.
I noticed the /FILE option while using inetc:: post. How do you use it? Do you put the file path "TEXT2POST" parameter?
As in:
inetc::post "C:\Users\Blah\Desktop\test.txt" /FILE /SILENT "http://localhost/PostReceiver.aspx" "$DOCUMENTS\post_reply.htm" /END Thanks in advance.