I was successfully able to send a POST request to the endpoint of my log and a JSESSIONID was created. I know that the JSESSIONID is stored in the HTTP Cookie Manager, which I have on top of my stream, because I see that it is used in several GET requests that I have in my stream.
But when I try to execute a POST request, it does not use JSESSIONID and does not create its own identifier. Below are my settings:
Protocol: https Method: POST -Use KeppAlive {"JSON": "PARAMS"}
Sampler result:
Topic name: sim test 1-1 Example: 2014-02-18 15:42:42 EST Download time: 95 Delay: 95 Size in bytes: 239 Size of headers in bytes: 239 Body size in bytes: 0 Number of samples : 1 Number of errors: 0 Answer code: 302 Reply message: Found
Response headers: HTTP / 1.1 302 Found Server: Apache-Coyote / 1.1 Set-Cookie: JSESSIONID = F16BF82FD28A84F6E28DDE30DECDC48C; Path = /; Safe; HttpOnly Location: https: //api.zzzz com / site / needsAuth Content-Length: 0 Date: Tue, 18 Feb 2014 20:42:42 GMT
HTTPSampleResult Fields: Content Type: DataEncoding: null
Request:
POST https: //api.zzz com / rest / members / 347 / passengers
POST:
{ "RelationshipToMember": , "authorizedToBook" "authorizedToFly": , "authorizedToGetInfo" "": { "": "", "MiddleName": , "LastName": "", "dateOfBirth": 1380857200000}}
[ cookie]
:
:
Content-Type: application/json
-: 204
: api.zzz.com
User-Agent: Apache-HttpClient/4.2.6 (java 1.5)
-: , GET, . Follow Redirects on, http://api.zzz... - 302 , https://api.zzz...
:
, : cookie Apache JMeter cookie POST, , - .
UPDATE
: , POST,