mardi 30 janvier 2018

Jmeter CookieManager not storing cookies for next request

I am trying to use JMeter Cookie Manager to use in requests after login request but Jmeter doesn't send cookies with the requests.

This is the response of the first request

Response headers:
HTTP/1.1 200 OK
Date: Tue, 30 Jan 2018 11:40:27 GMT
Server: Apache
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: X-PINGOTHER, Origin, X-Requested-With, Content-Type, Accept
Set-Cookie: DGSession=EwhG3kW21VtEnWSbuiZghmgGSSevZVb4xq5M6SMG37JElbbX_vns!650282103; domain=example.com.tr; path=/; HttpOnly
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, DELETE, HEAD
Access-Control-Allow-Origin: 
Access-Control-Max-Age: 1728000
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: application/json;charset=UTF-8

This is the request JMeter sends after the above request

POST https://example.com.tr/digitalgate_hesabim/login/startLogin.json

POST data:
{

  "clientSecret" : "345345-456456-dsfds-r456456"

}

[no cookies]  --> As you see cookies are not set

Request Headers:
Connection: keep-alive
Content-Type: application/json
Content-Length: 58
Host: example.com.tr
User-Agent: Apache-HttpClient/4.5.3 (Java/1.8.0_111)

What might be causing this problem?

Aucun commentaire:

Enregistrer un commentaire