Answered question

How to edit request headers?

I have recorded a script, in one request there is a token.
When I validate the script there is an extra inverted comma coming in that token which was not there in Recorded Request and Request Headers of that token.
How can I remove that, have tried edit it from recorded 'Request Headers' but its not working.
I have attached the screenshots.
Please let me know as because of this script is not working.

Ankur S.
Ankur S.

Ankur S.

Level
1
218 / 750
points
Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Ok i think that the issue is due to the comma inside your cookie value.

Please try the procedure below:

  1. Stop NeoLoad
  2. Edit <NeoLoad_install_dir>\conf\controller.properties
  3. Go to [Runtime] section and add in a new line that key: escaped.cookie.characters= ;
    Be careful there's a blank space between "=" and ";" you need to keep it.
  4. Save
  5. Start NeoLoad
  6. Replay again your script and check if that double quote is still there or not.

Did you find this useful ?

No (1)

Yes (0)

0%

0% of users found this answer useful

Other answers

Nouredine A.
Nouredine A.

Nouredine A.

Level
4
5000 / 5000
points
Team

Usually NeoLoad adds double quote like this when the value of your cookie contains a comma, semi-colon or a blank space. Could you check your value if it contains one of these caracters?

If needed could you copy/paste here your whole value?

Ankur S.
Ankur S.

Ankur S.

Level
1
218 / 750
points

Cookie: tokenData="{"access_token":"eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiVGVzdEFSQzAwMDEiLCJVc2VySWQiOiIyNjIiLCJQYXJ0bmVySWQiOiJUZXN0QVJDMDAwMSIsIlBhcmVudFVzZXJJZCI6IjAiLCJGaXJzdE5hbWUiOiJTdXBwb3J0IiwiUm9sZXMiOiJQYXJ0bmVyIiwiTmV0d29ya0lkIjoiMyIsImh0dHA6Ly9zY2hlbWFzLm1pY3Jvc29mdC5jb20vd3MvMjAwOC8wNi9pZGVudGl0eS9jbGFpbXMvcm9sZSI6IlBhcnRuZXIiLCJuYmYiOjE1ODUyMDg0MDYsImV4cCI6MTU4NTI0NDQwNiwiaXNzIjoiaHR0cDovL2xvY2FsaG9zdDo4MDgyL2F1dGhvcml6ZSIsImF1ZCI6IkFOWSJ9.Q5had9fMgcZ-YQoVmR54xRQ25taFpb6I4DFiiIAbTsU","token_type":"bearer","expires_in":35999,"refresh_token":null}"

Ankur S.
Ankur S.

Ankur S.

Level
1
218 / 750
points

" is not required after equal to sign and at the end. Because of this, script is failing.