0
votes

I am working on a Jmeter login script made with Blazemeter and whenever I try to do a post I get a 403 response code. I already made several questions on regards to this problem and I did all the things users suggested me, but I keep having the same error.

So my script starts with a get that I create like this: enter image description here

Whenever I run my script, in a second user, the header of the petition is sent correctly with all the necessary information. For the first user, cookies do not appear in petition. Its Like this: enter image description here

Then I do a post. The ajax token is obtained correctly: enter image description here

This is the extra things I have:

  1. Authorization Manager with url, username, password, domain and mechanism
  2. Cookie manager
  3. Header manager with cookies like this: ${COOKIE_GX_CLIENT_ID}
  4. DNS Cache manager
  5. HTTP Cache manager
  6. HTTP request defaults

I have done everything to solve this 403 problem but nothing is working. The only thing that I think could be generating me a problem is the parameters I send to the post. Apart from admin and password, I also have to send a gx state which is something with the next form:

GxState: {....}

I already asked about the problem I have with gxstate in the next post and someone tried to help me but I still cant solve it and if I solve it, I dont know if that is going to solve my 403 problem: How can concatenate two strings (regex) in Jmeter?

Any suggestions? I am new to Jmeter and I am desperate to solve this problem

1
Regarding use JMeter to test Genexus Applications, I think you can find this answer useful stackoverflow.com/a/66856859/4825845 - JuanMoreno

1 Answers

0
votes

To me this looks like you might have some trouble with a proxy interfering in your test. JMeter will not use any system-wide proxy settings.

If this is a possible explanation in your environment, try using the advanced tab of the HTTP Request Sampler or use HTTP Request Defaults at Test Plan level.

enter image description here