# Get final URL when response is 200

**URL:** <https://community.postman.com/t/get-final-url-when-response-is-200/40653>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [November 1, 2022, 6:23am UTC](https://community.postman.com/t/get-final-url-when-response-is-200/40653 "2022-11-01T06:23:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rk8989](https://avatars.discourse-cdn.com/v4/letter/r/8baadc/32.png) [@rk8989](https://community.postman.com/u/rk8989)\
**Post date:** [November 1, 2022, 6:23am UTC](https://community.postman.com/t/get-final-url-when-response-is-200/40653/1 "2022-11-01T06:23:44Z")

</div>

\*I’m trying to read the response URL when ‘Automatically follow redirect’ is on and final response is 200 \*:

I have tried to use pm.response.header.get(‘location’);

This works only when ‘Automatically follow redirect’ is turned off.
