# Multiple protocols in one scenario

**URL:** <https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269>\
**Category:** Gatling (Open-Source)\
**Created:** [August 12, 2014, 6:08am UTC](https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269 "2014-08-12T06:08:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![E\_Ulrich\_Kriegel](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@E\_Ulrich\_Kriegel](https://community.gatling.io/u/E_Ulrich_Kriegel)\
**Post date:** [August 12, 2014, 6:08am UTC](https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269/1 "2014-08-12T06:08:00Z")

</div>

Hi there,  
yesterday it was explained how to use multiple protocols with multiple scenarios in one simulation. Now the question arises, how to use multiple protocols in one scenario, i.e. access at first API A with protocol A’ and if it was successful, access afterwards API B with protocol B’.

Thanks in advance

–Ulrich

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 12, 2014, 9:57am UTC](https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269/2 "2014-08-12T09:57:04Z")

</div>

Hi,

Can you explain a bit more your use case ?

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![E\_Ulrich\_Kriegel](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@E\_Ulrich\_Kriegel](https://community.gatling.io/u/E_Ulrich_Kriegel)\
**Post date:** [August 12, 2014, 10:05am UTC](https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269/3 "2014-08-12T10:05:42Z")

</div>

Hi Pierre,  
the application we want to stress uses in parallel 3 REST-Apis/per user with different URLs. Therefore, I see no other solution as to specify the protocol in the scenario itself.

Cheers.  
Ulrich

---

<div class="post-metadata">

**Author:** ![Pierre\_DAL-PRA](https://avatars.discourse-cdn.com/v4/letter/p/ecccb3/32.png) [@Pierre\_DAL-PRA](https://community.gatling.io/u/Pierre_DAL-PRA)\
**Post date:** [August 12, 2014, 10:59am UTC](https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269/4 "2014-08-12T10:59:06Z")

</div>

I think that the simplest way would be to not resort to _baseUrl_ and specific protocols at all and to specify the full URL on each request.

`http("...").get("http://myurl")...`

Cheers,

Pierre

---

<div class="post-metadata">

**Author:** ![E\_Ulrich\_Kriegel](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@E\_Ulrich\_Kriegel](https://community.gatling.io/u/E_Ulrich_Kriegel)\
**Post date:** [August 12, 2014, 11:15am UTC](https://community.gatling.io/t/multiple-protocols-in-one-scenario/1269/5 "2014-08-12T11:15:39Z")

</div>

Thanks,  
sometimes one doesn’t see the forest for the trees
