Cannot send a content-body with this verb-type

前端 未结 4 1484
醉酒成梦
醉酒成梦 2020-11-29 00:32

I just got this exception (ProtocolViolationException) in my .NET 2.0 app (running on windows mobile 6 standard emulator). What confuses me is that as far as i know, I have

4条回答
  •  生来不讨喜
    2020-11-29 00:56

    Please set the request Content Type before you read the response stream;

     request.ContentType = "text/xml";
    

提交回复
热议问题