# Proxy config in gatling2 SNAPSHOT version

**URL:** <https://community.gatling.io/t/proxy-config-in-gatling2-snapshot-version/888>\
**Category:** Gatling (Open-Source)\
**Created:** [March 20, 2014, 10:56am UTC](https://community.gatling.io/t/proxy-config-in-gatling2-snapshot-version/888 "2014-03-20T10:56:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Daniel\_Moll](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Daniel\_Moll](https://community.gatling.io/u/Daniel_Moll)\
**Post date:** [March 20, 2014, 10:56am UTC](https://community.gatling.io/t/proxy-config-in-gatling2-snapshot-version/888/1 "2014-03-20T10:56:44Z")

</div>

Hi Guys,

I have recently migrated to Gatling2 SNAPSHOT version. I normally use Fidler to debug my script by configuring a proxy in the httpP

val httpProtocol = http  
.proxy(“localhost”, 8888)  
.httpsPort(8888)

When I try this in the SNAPSHOT version I get:

error: too many arguments for method proxy: (httpProxy: io.gatling.http.config.Proxy)io.gatling.http.config.HttpProtocolBuilder  
[ERROR] .proxy(“localhost”, 8888).httpsPort(8888)

Could you please help me out how to configure a proxy?

Cheers,

Daniel

---

<div class="post-metadata">

**Author:** ![Nicolas\_R](https://avatars.discourse-cdn.com/v4/letter/n/f14d63/32.png) [@Nicolas\_R](https://community.gatling.io/u/Nicolas_R)\
**Post date:** [March 20, 2014, 10:58am UTC](https://community.gatling.io/t/proxy-config-in-gatling2-snapshot-version/888/2 "2014-03-20T10:58:53Z")

</div>

Here is the syntax:

val httpProtocol = http  
.baseURL(“[http://172.30.5.143:8080](http://172.30.5.143:8080)”)  
.proxy(Proxy(“172.31.76.106”, 8080).httpsPort(8081))

Cheers  
Nicolas

---

<div class="post-metadata">

**Author:** ![Daniel\_Moll](https://avatars.discourse-cdn.com/v4/letter/d/97f17d/32.png) [@Daniel\_Moll](https://community.gatling.io/u/Daniel_Moll)\
**Post date:** [March 21, 2014, 1:57pm UTC](https://community.gatling.io/t/proxy-config-in-gatling2-snapshot-version/888/3 "2014-03-21T13:57:16Z")

</div>

Thanks!

Daniel
