This is very strage issue that I found. I am trying to send a request from the jemeter. it keeps saying me the badrequest and accountNumber is not set. But I am setting it from the Paramters from Jemeter. Same request I am running from the Postman and it is working but not working from the Jmeter.
Any help will be greatly appriciated
Request header
Connection: keep-alive
Authorization: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6Ik9FWUZrWVJmUU0zX2tLamEzTGJ0Q0EiLCJ0eXAiOiJhdCtqd3QifQ.eyJuYmYiOjE2NTM4MDQ5OTcsImV4cCI6MTY1MzgwODU5NywiaXNzIjoiaHR0cHM6Ly9hcHAtaW5mLWlkcy10cy1xYS5henVyZXdlYnNpdGVzLm5ldCIsImF1ZCI6ImRvYy1nZW4iLCJjbGllbnRfaWQiOiJkb2MtZ2VuIiwiY2xpZW50X1NoYXJlZFNlY3JldCI6ImNzZ0MwcWNWZkIvLzlJZ1NpUTE5RUdRUlYrRURwNWZ6QzIyaHRMWmdYSVU9Iiwic2NvcGUiOlsiZG9jLWdlbiJdfQ.cFtbTYmUKRa-8jlm9uLlsax-9lylOEvpdO9WxDN-eXpBlQtryLjrtaZvxGTM2kMRLwSd97jZIth0v6PnuQivEiEenvg0nYI02rfCDmNVNgvIzeplsBrD410MaeyGNYHfdWT_ZgfhWdhgosf7b-8h22Br6ySfojd8hUaTt5njgoYf7x5hBrylgE8URN_D9SUpQY7r9v1Pftwx4S6E5cKa8Uc5kt4hQdaXvJnu0WixLBcAL38HqDaIIZwP-r9dHJ_j0sSWs7baPm_9ekK4NI_BByx1wY8jzeSbnmtIEyCAkVXtVQ4SCYd7DqejZnsM0hJ62_keAoOpFzfbnwBo6BqNfg
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate, br
Content-Length: 25
Host: app-test.azurewebsites.net
User-Agent: Apache-HttpClient/4.5.12 (Java/11.0.11)
CodePudding user response:
U can do it by this way,
Change the path of the http request sampler
to /api/vi/Documents/Requests/Initialize?accountNumber=88925982303
and add a header manager with below details,