Credentials are not attached to proxy request

Hi All,

I need help with my test.

I have a code:


package simulations

import scenarios.BookerScenario
import io.gatling.core.Predef.Simulation
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import test.scala.config.Config._

class BookerSimulation extends Simulation {

val proxy_url = “”
val httpProtocol = http
Proxy(proxy_url, 3128)
.credentials(“myusername”, “mypassword”)
private val createUserExec = BookerScenario.simulateUsers
.inject(rampUsers(users) during (throughput)).protocols(httpProtocol)



But when I run this simulations, then I received 407 status code (407 Proxy Authentication Required)

I checked logs from gatling and I can see that credentials parameters are not attached to the request:


You won’t see the Proxy-Authorization header in there, it’s handled internally somewhere else.