405 - Method Not Allowed HttpWebRequest

前端 未结 3 830
萌比男神i
萌比男神i 2021-01-25 03:54

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          


        
3条回答
  •  醉梦人生
    2021-01-25 04:51

    Are you missing the Content-Type header required for a POST ? Read here for details. I assume it is mandatory.

提交回复
热议问题