405 - Method Not Allowed HttpWebRequest
I have a problem when trying to send a POST request. The sending method looks like this: Public Sub SendXML(ByVal file As String) Dim reader As New StreamReader(file) Dim data As String = reader.ReadToEnd() reader.Close() Dim request As HttpWebRequest = WebRequest.Create("http://blah/Request") request.Method = "POST" System.Net.ServicePointManager.Expect100Continue = False Dim bytes As Byte() = System.Text.Encoding.ASCII.GetBytes(data) request.ContentLength = bytes.Length Dim oStreamOut As Stream = request.GetRequestStream() oStreamOut.Write(bytes, 0, bytes.Length) oStreamOut.Close() Dim