Base:
property
ContentLength
System.Net.WebRequest.ContentLength
12 writes to ContentLength
System.Data.Services.Client (6)
System\Data\Services\Client\DataServiceContext.cs (6)
2051request.ContentLength = 0; 4357httpWebRequest.ContentLength = contentStream.Stream.Length - contentStream.Stream.Position; 4376httpWebRequest.ContentLength = contentStream.Stream.Length - contentStream.Stream.Position; 4664mediaRequest.ContentLength = 0; 4685mediaRequest.ContentLength = buffer.Length; 5053httpWebRequest.ContentLength = memory.Length - memory.Position;
System.Runtime.Remoting (3)
channels\http\httpclientchannel.cs (3)
710httpWebRequest.ContentLength = (int)inputStream.Length; 727httpWebRequest.ContentLength = (int)inputStream.Length; 962WebRequest.ContentLength = (int)RequestStream.Length;
System.ServiceModel (1)
System\ServiceModel\Channels\HttpChannelHelpers.cs (1)
2419httpWebRequest.ContentLength = contentLength;
System.Web.Extensions (2)
ClientServices\Providers\ProxyHelper.cs (2)
61request.ContentLength = postedBody.Length; 66request.ContentLength = 0;
22 references to ContentLength
System (22)
net\System\Net\_Connection.cs (1)
2261m_MaximumUnauthorizedUploadLength >= 0 && request.ContentLength > m_MaximumUnauthorizedUploadLength
net\System\Net\_ConnectStream.cs (4)
214m_BytesLeftToWrite = m_HttpWriteMode==HttpWriteMode.ContentLength ? request.ContentLength : -1; 933if (BufferedData!=null && size != 0 && (m_Request.ContentLength != 0 || !IsPostStream || !m_Request.NtlmKeepAlive)) { 1089if(m_Request.ContentLength == 0 && IsPostStream) { 1103if (m_Request.ContentLength != 0 || !IsPostStream || !m_Request.NtlmKeepAlive) {
net\System\Net\HttpWebRequest.cs (17)
1272GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckProtocol(" + onRequestStream + ") HttpWriteMode:" + HttpWriteMode + " SendChunked:" + SendChunked + " ContentLength:" + ContentLength); 1280if ((HttpWriteMode!=HttpWriteMode.Unknown && HttpWriteMode!=HttpWriteMode.None) || (ContentLength > 0) || SendChunked) { 1310HttpWriteMode = ContentLength>=0 ? HttpWriteMode.ContentLength : onRequestStream ? HttpWriteMode.Buffer : HttpWriteMode.None; 1315if ((onRequestStream || _OriginVerb.Equals(KnownHttpVerb.Post) || _OriginVerb.Equals(KnownHttpVerb.Put)) && ContentLength == -1 && !AllowWriteStreamBuffering && KeepAlive) { 1327GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::CheckProtocol(" + onRequestStream + ") no error, returning null. HttpWriteMode:" + HttpWriteMode + " SendChunked:" + SendChunked + " ContentLength:" + ContentLength); 1722return HttpWriteMode==HttpWriteMode.Chunked || HttpWriteMode==HttpWriteMode.Buffer || (HttpWriteMode==HttpWriteMode.ContentLength && ContentLength>0); 4426GlobalLog.Print("HttpWebRequest#" + ValidationHelper.HashString(this) + "::EndWriteHeaders() ContentLength:" + ContentLength + " HttpWriteMode:" + HttpWriteMode + " _ServicePoint.Understands100Continue:" + _ServicePoint.Understands100Continue + " ExpectContinue:" + ExpectContinue); 4454return ((ContentLength>0 || HttpWriteMode==HttpWriteMode.Chunked) 4601submitWriteStream.ResubmitWrite(_OldSubmitWriteStream, (NtlmKeepAlive && ContentLength == 0)); 4604if (NtlmKeepAlive && ((ContentLength == 0) || (HttpWriteMode == HttpWriteMode.Chunked))) { 4607if (ContentLength == 0) { 4997GlobalLog.Assert(!CurrentMethod.ContentBodyNotAllowed, "HttpWebRequest#{0}::SerializeHeaders()|!ContentBodyNotAllowed CurrentMethod:{1} HttpWriteMode:{2} ContentLength:{3}", ValidationHelper.HashString(this), CurrentMethod, HttpWriteMode, ContentLength); 5000else if (ContentLength>=0) { 5002GlobalLog.Assert(!CurrentMethod.ContentBodyNotAllowed, "HttpWebRequest#{0}::SerializeHeaders()|!ContentBodyNotAllowed CurrentMethod:{1} HttpWriteMode:{2} ContentLength:{3}", ValidationHelper.HashString(this), CurrentMethod, HttpWriteMode, ContentLength); 5006if ((ContentLength>0 || HttpWriteMode==HttpWriteMode.Chunked) && ExpectContinue) { 5363serializationInfo.AddValue("_ContentLength", ContentLength); 5910&& UserRetrievedWriteStream && (HttpWriteMode != HttpWriteMode.ContentLength || ContentLength != 0))