I've finally resolved this, so I thought I'd share this with the community:
Dim postData As String = String.Empty
postData &= [xml code comes here]
Try
Dim encoding As New ASCIIEncoding
Dim data As Byte() = encoding.GetBytes(postData)
' Prepare web request...
Dim myRequest As HttpWebRequest
myRequest = CType(WebRequest.Create(" destination URL"), HttpWebRequest)
myRequest.Method = "POST"
myRequest.ContentType = "text/plain"
myRequest.ContentLength = data.Length
Dim stream As System.IO.Stream = myRequest.GetRequestStream
stream.Write(data, 0, data.Length)
stream.Close()
This VBScript actually sends a stream of data using FORM POST, without any variable name assigned to the data. I understand this is normal for sending XML files.
To read the data stream, I had to use the following PHP code:
$data = file_get_contents('php://input');
This got the data into my variable name $data.
Now it all works fine. 🙂