Search code examples
cookiesjmeterheaderp3phttp-status-code-429

JMETER This site does not specify a policy in the P3P header ERROR


I am trying to hit this URL https://subdomain.example.com in JMeter and recorded using the Blazemeter Chrome extension has all the necessary config elements but get an error:

HTTP/1.1 429 Too Many Requests Content-Type: text/html; charset=utf-8 Content-Length: 1031 Connection: keep-alive Cache-Control: private, no-cache, no-store, must-revalidate Date: Tue, 20 Aug 2019 01:21:35 GMT Expires: 0 p3p: CP="This site does not specify a policy in the P3P header"

I have tried coping the Header Cookies from Browser Header Response which works for sometime but then start throwing an error

enter image description here


Solution

  • Thanks for your reply. In the end I figured out that no limitation for number of calls implemented. Now come to answer this is how I managed to work this:

    1. Opened the page in chrome and from the header section copied all the header elements into the header manager hard coded. First time it fails and returns p3p: CP="This site does not specify a policy in the P3P header" but also return the update variable value needed for next request which I extract and used in the next and subsequent Requests. The way I was able to find out which variable is changing by using the string comparison of 2 Response Headers

    enter image description here

    enter image description here

    This was a difficult one but somehow worked with very minor change I also added the Header Manager to each request for safer side.