Hi! Sorry to bother again! I'm really stuck here and with no ideas on hot to proceed.
Does any one have any idea on how to add a json code to the cookie? I have tried to add it with a cookie manager, but with no success. Thanks in advance. Kind Regards, Miguel ---------- Forwarded message ---------- From: MiguelFonseca <[email protected]> Date: 22 November 2013 13:36 Subject: How to Send a URL-encoded JSON string with Jmeter To: JMeter Users List <[email protected]> Hy Guys, I'm having a little bit of a trouble to send an http GET that from what I could check with firebug sends within the cookie a king of FILTER" Request Headersview source Accepttext/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Encodinggzip, deflateAccept-Languageen-gb,en;q=0.5 Connection keep-aliveContent-Typeapplication/json Cookie FILTER=%7B%22pk_filter_id%22%3A%220%22%2C%22filter_name%22%3A%22NO%20VESSELS%22%2C%22filter_description %22%3A%22Filter%20with%20no%20vessels%22%2C%22visibility_level%22%3A%22A%22%2C%22condition%22%3A%7B%22source %22%3A%22aslv%22%2C%22type%22%3A%22data%22%2C%22shiptype_ais%22%3A%22%22%2C%22shiptype_psc%22%3A%22%22 %2C%22shiptype_lmiu%22%3A%22%22%2C%22flag%22%3A%22%22%2C%22area%22%3A%22%22%2C%22fromPort%22%3Anull%2C %22toPort%22%3Anull%2C%22normal%22%3Afalse%2C%22alert%22%3Afalse%2C%22banned%22%3Afalse%2C%22sht%22%3Afalse %2C%22hazmat%22%3Afalse%2C%22idle%22%3Afalse%2C%22list%22%3A%22%22%7D%2C%22create_user_id%22%3A%220%22 %2C%22creator_name%22%3A%22DEFAULT%22%2C%22create_dt%22%3A%222011-02-04%2000%3A00%3A00%22%2C%22update_user_id %22%3A%220%22%2C%22modifier_name%22%3A%22DEFAULT%22%2C%22update_dt%22%3A%222011-02-04%2000%3A00%3A00%22%2C%22version%22%3A%221%22%2C%22refresh_rate%22%3A6%2C%22validity_time%22%3A24%7D; __utma=243051798.2112623253.1382025345.1382025345.1384526278.2; __utmz=243051798.1384526278.2.2.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); JSESSIONID=F8j6SPhYBccVxY4hJJMgljy0LrCdTYG9kSDbfLzyvhxzpXCLphx3!1149065283; _WL_AUTHCOOKIE_JSESSIONID=5kSlfYZFCLV0onDe2pW7 Host stires-training.emsa.europa.euReferer https://stires-training.emsa.europa.eu/ssn-gi/main.jspUser-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0X-Requested-With XMLHttpRequest Within the capture I have made with Jmeter proxy, the cookie content is not as this. It sends the follwing: GET https://stires-training.emsa.europa.eu/ssn-gi/tracks.json?south=23.58164695112831&west=-59.14878101647554&north=64.11379861446939&east=70.75745090936842&selectedVesselId=-1&maxTailPoints=3&tailOnSelection=false Cookie Data: $Version=0; JSESSIONID=JHnNSPWfYDnYDptlb3Q8RPhxTjYQvGrfTP9TV7TqnL8wpvYpkV59!1149065283; $Path=/; _WL_AUTHCOOKIE_JSESSIONID=C-68XOb-G46pCpaeC8n2; $Path=/ Request Headers: Accept-Language: en-gb,en;q=0.5 Range: items=0-9 X-Requested-With: XMLHttpRequest Referer: https://stires-training.emsa.europa.eu/ssn-gi/main.jsp Accept-Encoding: gzip, deflate User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:25.0) Gecko/20100101 Firefox/25.0 Connection: keep-alive Content-Type: application/json Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Does any one knows how to send this? I do Know that I have to use the following: *%7B%22pk_filter_id%22%3A%221%22%2C%22filter_name%22%3A%22ALL%20VESSELS%22%2C%22filter_description%22%3A%22Filter%20with%20all%20vessels%22%2C%22visibility_level%22%3A%22A%22%2C%22condition%22%3A%7B%22source%22%3A%22aslv%22%2C%22type%22%3A%22data%22%2C%22shiptype_ais%22%3A%220%2C1%2C2%2C3%2C4%2C5%2C6%2C7%2C8%2C9%2C30%22%2C%22shiptype_psc%22%3A%22%22%2C%22shiptype_lmiu%22%3A%22%22%2C%22flag%22%3A%22%22%2C%22area%22%3A%22%22%2C%22fromPort%22%3Anull%2C%22toPort%22%3Anull%2C%22normal%22%3Atrue%2C%22alert%22%3Atrue%2C%22banned%22%3Atrue%2C%22sht%22%3Atrue%2C%22hazmat%22%3Atrue%2C%22idle%22%3Atrue%2C%22list%22%3A%22%22%7D%2C%22create_user_id%22%3A%220%22%2C%22creator_name%22%3A%22DEFAULT%22%2C%22create_dt%22%3A%222011-02-04%2012%3A03%3A11%22%2C%22update_user_id%22%3A%220%22%2C%22modifier_name%22%3A%22DEFAULT%22%2C%22update_dt%22%3A%222011-02-04%2012%3A03%3A11%22%2C%22version%22%3A%221%22%2C%22refresh_rate%22%3A6%2C%22validity_time%22%3A24%7D* *But I don't know if this is to add to the cookie manager, or in the http header, or somewhere else. * *Thanks in advance.* *Kind Regards,*
