# Checking the received url and displaying the body

**URL:** <https://community.gatling.io/t/checking-the-received-url-and-displaying-the-body/3990>\
**Category:** Gatling (Open-Source)\
**Created:** [October 13, 2017, 9:22pm UTC](https://community.gatling.io/t/checking-the-received-url-and-displaying-the-body/3990 "2017-10-13T21:22:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Rogers](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Paul\_Rogers](https://community.gatling.io/u/Paul_Rogers)\
**Post date:** [October 13, 2017, 9:22pm UTC](https://community.gatling.io/t/checking-the-received-url-and-displaying-the-body/3990/1 "2017-10-13T21:22:11Z")

</div>

Hello again.

I had no luck with the HAR import and conversion, so I decided to try coding my scenario directly.

The url I am going to does a redirect,

eg  
GET [foo.com/](http://foo.com/)  
redirects to  
GET [auth.foo.com/auth?abc=123](http://auth.foo.com/auth?abc=123)

Ive added a check on the get, to check for the 302, but its showing a 200. How can i display the url it got, and the bofy to debug what is going on?

Thanks

Paul

---

<div class="post-metadata">

**Author:** ![Paul\_Rogers](https://avatars.discourse-cdn.com/v4/letter/p/aeb1de/32.png) [@Paul\_Rogers](https://community.gatling.io/u/Paul_Rogers)\
**Post date:** [October 13, 2017, 9:51pm UTC](https://community.gatling.io/t/checking-the-received-url-and-displaying-the-body/3990/2 "2017-10-13T21:51:20Z")

</div>

so I think im asserting the value of the redirected url, so that explains the 302/200 discrepancy.  
I can try some more now
