0
votes

400 Bad Request issue with this URL using JMeter. It works if I open it in a browser, but in JMeter giving a 400 bad request

I tried setting Content-Type with other values such as application/json or text/plain. None of them worked.

I even tried putting these 2 parameters separately as name and value with URL encoding selected that also did not work enter image description here

New key value can be used is AIzaSyAhpDEvHFjzUs2zUT8rYGrGjGfX1zPZEWM

Attached is my test plan

2
Can you see the request sent? For example with the proxy like in point 3 of octoperf.com/blog/2018/05/04/debug-jmeter-script ? - B. Go

2 Answers

0
votes

Here are the settings from JMeter:

HTTPS Sampler:

enter image description here

View Results Tree:

Request:

enter image description here

Response:

enter image description here

0
votes

It was issue with colon in header name it was causing the issue

:authority Removed colon and it started working