Unable to get status 302 in response

Hi every One,

I’m trying to run a scenario on an ADF application.
It’s the login page.(I didn’t enter any user / pass…just the login page)
I need to get status → “302” to get some information from the response but I allways get “200 OK”
Where should I check to get 302 information ?

Does it have something to do with ADF applications ?!

Thank you

`
class MyLogin extends Simulation {

val httpProtocol = http
.baseURL(“http://172.28.0.91:7102”)
.inferHtmlResources()
.acceptHeader(“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8”)
.acceptEncodingHeader(“gzip, deflate”)
.acceptLanguageHeader(“en-US,en;q=0.5”)
.connection(“keep-alive”)
.userAgentHeader(“Mozilla/5.0 (Windows NT 6.1; WOW64; rv:34.0) Gecko/20100101 Firefox/34.0”)

val uri1 = “http://172.28.0.91:7102/intl/faces

val scn = scenario(“MyLogin”)
.exec(http(“request_0”)
.get("/intl/faces/Home")
.resources(http(“request_1”)
.get(uri1 + “/security/pages/Login.jspx?_afrLoop=1805190504273000&_afrWindowMode=0&_afrWindowId=15ju479l2n_1”)))

setUp(scn.inject(atOnceUsers(1))).protocols(httpProtocol)
}
`

http://gatling.io/docs/2.1.2/http/http_protocol.html#follow-redirects

Thanks :slight_smile: