---
title: originalRequest
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsessiontask/originalrequest
---

# originalRequest

The original request object passed when the task was created.

## Declaration

```swift
var originalRequest: URLRequest? { get }
```

## Discussion

Discussion This value is typically the same as the currently active request (currentRequest) except when the server has responded to the initial request with a redirect to a different URL.

## See Also

### Obtaining general task information

- [currentRequest](foundation/urlsessiontask/currentrequest.md)
- [response](foundation/urlsessiontask/response.md)
- [taskDescription](foundation/urlsessiontask/taskdescription.md)
- [taskIdentifier](foundation/urlsessiontask/taskidentifier.md)
- [error](foundation/urlsessiontask/error.md)
