It means the HTTP server does not support the PUT
method on that URL (if at all). There is nothing you can do about that. You will likely have to upload your data another way, usually involving POST
instead, or a completely different protocol, like FTP.
BTW, when using TStringStream
like this, don't forget to reset the Position
if you use the WriteString()
method:
StringToUpload.WriteString(memo.Lines.Text);
StringToUpload.Position := 0;
Otherwise, use the constructor instead:
StringToUpload := TStringStream.Create(memo.Lines.Text);