JMeter | Request with Patch Method giving error-"Invalid HTTP method: PATCH"

Viewed 25

I am getting the below error when I am trying to hit a request having Method: PATCH

Using JMeter Version:-apache-jmeter-5.4.1

"java.net.ProtocolException: Invalid HTTP method: PATCH at java.base/java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:487) at java.base/sun.net.www.protocol.http.HttpURLConnection.setRequestMethod(HttpURLConnection.java:596)" enter image description here

It will be helpful if I get expert assistance to resolve their issue.

Thanks

2 Answers

You need to change "Client Implementation" to HttpClient4 either at "Advanced" tab of the HTTP Request sampler or in the HTTP Request Defaults - this way the change will be applied to all HTTP Request samplers in the HTTP Request Defaults scope

enter image description here

Related