इस तरह मैं नेट के साथ एक सेवा को कॉल:मुझे 411 लंबाई आवश्यक त्रुटि क्यों मिलती है?
var requestedURL = "https://accounts.google.com/o/oauth2/token?code=" + code + "&client_id=" + client_id + "&client_secret=" + client_secret + "&redirect_uri=" + redirect_uri + "&grant_type=authorization_code";
HttpWebRequest authRequest = (HttpWebRequest)WebRequest.Create(requestedURL);
authRequest.ContentType = "application/x-www-form-urlencoded";
authRequest.Method = "POST";
WebResponse authResponseTwitter = authRequest.GetResponse();
लेकिन जब इस पद्धति शुरू हो जाती है, मैं:
Exception Details: System.Net.WebException: The remote server returned an error: (411) Length Required.
मुझे क्या करना चाहिए?
क्या आप कृपया मेरे प्रश्न का संदर्भ लें "http://stackoverflow.com/questions/35308945/accessing-sftp-url-from-console-plication-using-c-sharp"? मुझे एक ही समस्या है। मैं एसएफटीपी यूआरएल –