Additional rule - if your HTML Document contains a JavaScript that you know is correct, but doesn't work when you post it, send the HTML Document as Binary. The text might need some minor adjusting, but will probably be fine. The Script is the concern here. It's just that sending an HTML document as Binary, tends to mess it up a bit. More than just text is being sent - form is now involved, and it may alter up what you want.
Text is text.
Applets, images, CGI's and Scripts, are quite different. If you download or transfer something and it fails to work - the smart money is that you corrupted it through one or many of your transfers. Corp. All Rights Reserved.