# HTTP configuration for multi-scenarios

**URL:** <https://community.gatling.io/t/http-configuration-for-multi-scenarios/522>\
**Category:** Gatling (Open-Source)\
**Created:** [August 1, 2013, 8:30am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522 "2013-08-01T08:30:55Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jean-Baptiste\_Reich](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jean-Baptiste\_Reich](https://community.gatling.io/u/Jean-Baptiste_Reich)\
**Post date:** [August 1, 2013, 8:30am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/1 "2013-08-01T08:30:55Z")

</div>

Hello,

I would like to be able to have an HTTP configuration for each of my scenarios. In gatling1 it was possible according to the documentation:

setUp(  
scn.users(10).ramp(10).protocolConfig(httpConf1),  
otherScn.users(5).ramp(20).protocolConfig(httpConf2)  
)

But in Gatling2, protocols are configured in the setUp:

setUp(  
scn.inject(ramp(10).over(10)),  
otherScn.inject(ramp(5).over(20))).protocols(httpConf1) httpConf2 ?

So, is it still possible to have a configuration per scenario ?

Thanks

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [August 1, 2013, 9:39am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/2 "2013-08-01T09:39:16Z")

</div>

Currently not.  
What’s your use case?

---

<div class="post-metadata">

**Author:** ![Jean-Baptiste\_Reich](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jean-Baptiste\_Reich](https://community.gatling.io/u/Jean-Baptiste_Reich)\
**Post date:** [August 1, 2013, 9:51am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/3 "2013-08-01T09:51:25Z")

</div>

Hi,

I am using basically 2 things:

1. I need different default headers and baseURL
2. I am using disableClientSharing for one and not for the other

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [August 1, 2013, 10:18am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/4 "2013-08-01T10:18:16Z")

</div>

People in telecommunication, always doing weird stuff…

Anyone here with the same needs? I’m a bit reluctant to roll this back, so I’d like more feedback.

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [August 1, 2013, 10:56am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/5 "2013-08-01T10:56:19Z")

</div>

Good news:

- I ended up re-introducing protocols at scenario level too: [https://github.com/excilys/gatling/issues/1328](https://github.com/excilys/gatling/issues/1328)

Bad news:

- people would have started developing their own protocol support on top of 2M3 will have to adapt their code (very easy though)
- you owe me a beer if we meet someday, Nico’s friend!

---

<div class="post-metadata">

**Author:** ![Jean-Baptiste\_Reich](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@Jean-Baptiste\_Reich](https://community.gatling.io/u/Jean-Baptiste_Reich)\
**Post date:** [August 1, 2013, 11:44am UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/6 "2013-08-01T11:44:31Z")

</div>

Thank you ! OK for a beer 🙂 !

Otherwise, my use case is:

- one side with several users with their own connection modifying our REST server
- one side with a supervisor which has a connection pool and accesses what is created by users

That’s why I need to manage connections differently between scenarios.  
In fact, I was asking the question to have something closer to the reality but I started my test with disableClientSharing for both scenarios which is a worst case for me. But now that the feature is there, I will try it.

Thank you again

---

<div class="post-metadata">

**Author:** ![Excilys](https://avatars.discourse-cdn.com/v4/letter/e/8797f3/32.png) [@Excilys](https://community.gatling.io/u/Excilys)\
**Post date:** [August 1, 2013, 12:06pm UTC](https://community.gatling.io/t/http-configuration-for-multi-scenarios/522/7 "2013-08-01T12:06:54Z")

</div>

You’re welcome!
