# Programmatic HTTP configuration

**URL:** <https://community.gatling.io/t/programmatic-http-configuration/3049>\
**Category:** Gatling (Open-Source)\
**Created:** [June 3, 2016, 3:38am UTC](https://community.gatling.io/t/programmatic-http-configuration/3049 "2016-06-03T03:38:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andy\_M](https://avatars.discourse-cdn.com/v4/letter/a/82dd89/32.png) [@Andy\_M](https://community.gatling.io/u/Andy_M)\
**Post date:** [June 3, 2016, 3:38am UTC](https://community.gatling.io/t/programmatic-http-configuration/3049/1 "2016-06-03T03:38:18Z")

</div>

Is it possible to configure options such as connect timeout and read timeout within the simulation code, rather than within the global configuration file / JVM options?

Something like:

val httpConf = http.baseURL(entryUrl).disableFollowRedirect.readTimeout(5000 ms).connectTimeout(1000 ms)

---

<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:** [June 15, 2016, 12:16pm UTC](https://community.gatling.io/t/programmatic-http-configuration/3049/2 "2016-06-15T12:16:39Z")

</div>

No
