# Why Gatling always make/show one more request compare to what was actually requested in code?

**URL:** <https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945>\
**Category:** Gatling (Open-Source)\
**Created:** [September 25, 2017, 9:27pm UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945 "2017-09-25T21:27:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neel\_Desai](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@Neel\_Desai](https://community.gatling.io/u/Neel_Desai)\
**Post date:** [September 25, 2017, 9:27pm UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945/1 "2017-09-25T21:27:34Z")

</div>

```auto
val searchscenario = scenario("Search Request")
  .exec(http("Select criteria")
    .get("/"))
     .pause(2)

```

```auto
  .exec(http("Search")
    .get("/computers?f=macbook"))
     .pause(2)
  .exec(http("Select")
    .get("/computers/6"))
     .pause(3)

```

```auto

```

```auto

```

```auto
As you can see in the above example, I am just making three request but when I see this in report it comes out like :

```

```auto

```

```auto
> request count 4 (OK=4 KO=0 )
> min response time 111 (OK=111 KO=- )
> max response time 217 (OK=217 KO=- )
> mean response time 138 (OK=138 KO=- )
> std deviation 45 (OK=45 KO=- )
> response time 50th percentile 113 (OK=113 KO=- )
> response time 75th percentile 139 (OK=139 KO=- )
> response time 95th percentile 201 (OK=201 KO=- )
> response time 99th percentile 214 (OK=214 KO=- )
> mean requests/sec 0.5 (OK=0.5 KO=- )

```

```auto

```

```auto

```

```auto
Shows 4 requests. Why so?

```

```auto

```

```auto

```

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [September 26, 2017, 7:04am UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945/2 "2017-09-26T07:04:37Z")

</div>

Have you checked the list of request types? Answer is pretty obvious.

---

<div class="post-metadata">

**Author:** ![Neel\_Desai](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@Neel\_Desai](https://community.gatling.io/u/Neel_Desai)\
**Post date:** [September 27, 2017, 3:37pm UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945/3 "2017-09-27T15:37:43Z")

</div>

It is showing

1. Select criteria
2. Select criteria redirect
3. Search
4. Select

---

<div class="post-metadata">

**Author:** ![Neel\_Desai](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@Neel\_Desai](https://community.gatling.io/u/Neel_Desai)\
**Post date:** [September 27, 2017, 3:46pm UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945/4 "2017-09-27T15:46:29Z")

</div>



---

<div class="post-metadata">

**Author:** ![Barry\_Perez](https://avatars.discourse-cdn.com/v4/letter/b/7ba0ec/32.png) [@Barry\_Perez](https://community.gatling.io/u/Barry_Perez)\
**Post date:** [September 27, 2017, 8:03pm UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945/5 "2017-09-27T20:03:34Z")

</div>

You answered your own question here. The “Select criteria” page is issuing a 302 redirect, and that is being followed by Gatling and logged as a transaction.

---

<div class="post-metadata">

**Author:** ![Neel\_Desai](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@Neel\_Desai](https://community.gatling.io/u/Neel_Desai)\
**Post date:** [September 27, 2017, 9:09pm UTC](https://community.gatling.io/t/why-gatling-always-make-show-one-more-request-compare-to-what-was-actually-requested-in-code/3945/6 "2017-09-27T21:09:34Z")

</div>

Got it thanks and also found on [http://gatling.io/docs/current/http/http\_protocol/#http-protocol](http://gatling.io/docs/current/http/http_protocol/#http-protocol)
