Why I get 411 Length required error?
When you’re using HttpWebRequest and POST method, you have to set a content (or a body if you prefer) via the RequestStream. But, according to your code, using authRequest.Method = “GET” should be enough. In case you’re wondering about POST format, here’s what you have to do : ASCIIEncoding encoder = new ASCIIEncoding(); byte[] data … Read more