# ReceiveContentLength(int)

> Callback, invoked with a Content-Length header is received.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Networking](/engine/6000.5/script-reference/unityengine/networking.md)
* **Assembly:** UnityEngine.UnityWebRequestModule

> **Warning:**
>
> **Deprecated.** Use ReceiveContentLengthHeader

```csharp
protected virtual void ReceiveContentLength(int contentLength)
```

### Parameters

**** (\[int]\(https\://learn.microsoft.com/dotnet/api/system.int32)): The value of the received `Content-Length` header.

### Remarks

Obsolete. Use [DownloadHandler.ReceiveContentLengthHeader](/engine/6000.5/script-reference/unityengine/networking/downloadhandler/receivecontentlengthheader.md) instead.
