Missing content length extractor

When you launch a test on Flood we extract results using InfoExtractors to write Content-Length and StatusCode headers to the simulation log file.

Please ensure that your test plan extracts the Content-Length header as follows.

response.getHeader("Content-Length")

Example shown below:

import scala.concurrent.duration._
import io.gatling.core.Predef._
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
class TestPlan extends Simulation {
val uuid = List(System.getProperty("uuid"))
val httpProtocol = http
.baseURL("http://google.com")
.acceptHeader("text/html,application/xhtml+xml,application/xml;")
.acceptEncodingHeader("gzip, deflate")
.extraInfoExtractor((status, session, request, response) =>
List(uuid, Option(response.getHeader("Content-Length")).getOrElse("0"), response.getStatusCode.toString))
val scn = scenario("Scenario Name")
.exec(http("first_page")
.get("/"))
.pause(1000 milliseconds, 5000 milliseconds)
setUp(scn.inject(ramp(10 users) over (60 seconds))).protocols(httpProtocol)
}