使用HttpWebRequest在post请求时发生错误,本地调试没有有关问题

使用HttpWebRequest在post请求时发生异常,本地调试没有问题
放到服务器上就会这样,求助
System.Net.ProtocolViolationException: Content-Length or Chunked Encoding cannot be set for an operation that does not write data.
   at System.Net.HttpWebRequest.CheckProtocol(Boolean onRequestStream)
   at System.Net.HttpWebRequest.GetResponse()


------解决思路----------------------
Content-Length怎么设的? 是不是post数据有中文,计算的Content-Length不对

------解决思路----------------------
看了两个帖子,都说和redirect相关的, 你看看

http://*.com/questions/6636009/why-does-this-exception-claim-the-code-doesnt-write-data

http://forums.asp.net/t/1698399.aspx?Content+Length+or+Chunked+Encoding+cannot+be+set+for+an+operation+that+does+not+write+data+
------解决思路----------------------
你说本地没问题,那只有把post的url,data写log查看