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