Gatling proxy configuration

Hi there,

I’m having an issue with a proxy I’m using.

The thing is, it uses the http scheme even when connecting to a https target.

Right now the the Proxy class in gatling doesn’t support a scheme parameter, and uses the https scheme for the secure port. Could that be made configurable, please?

Cheers,

Stefan

Hi Stefan,

I don’t get it.
What does your Gatling proxy set up look like?
Which version do you use?

Hi Stéphane,

Using RC6.

This is the code:

val httpConf =
.baseURL(“https://myhost.no”)
.proxy(Proxy(“myproxy.no”, 3128, 3128))

Debugging, I can see that the httpConf contains the following two proxies, and that there is a httpS in the last one, which won’t work with our proxy (probably a lot of other proxies will have issues with this too):

Some((http://myproxy.no:3128,https://myproxy.no:3128))

Does it make more sense now?

Stefan

This http/https things is actually only used internally to not mix HTTP and HTTPS connections in the connection pool.

It’s absolutely not used to compute the CONNECT request and such.

What I realize (facepalm) is that Proxy defined at Protocol level is ignored. Only request one is honored…
Can you confirm that’s your actual issue, please?

https://github.com/gatling/gatling/issues/2271

This http/https things is actually only used internally to not mix HTTP and HTTPS connections in the connection pool.

It’s absolutely not used to compute the CONNECT request and such.

What I realize (facepalm) is that Proxy defined at Protocol level is ignored. Only request one is honored…
Can you confirm that’s your actual issue, please?

Confirmed. Thanks for the swift fix.
How far away is RC7?

Stefan

No RC7, 2.0 planned for monday.