Please post your Web Driver questions in official Web Driver forum

Sunday, October 9, 2016

JMeter and Patch Request

I was using PATCH request with JMeter and I get following error -


########################################################
java.net.ProtocolException: Invalid HTTP method: PATCH
at java.net.HttpURLConnection.setRequestMethod(HttpURLConnection.java:428)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.setRequestMethod(HttpsURLConnectionImpl.java:374)
#########################################################

The problem lies with HTTP Request implementation being used here. Java implementation of HTTP request does not support PATH request and you should be using HTTPClient 4 implementation to get rid of this error
Fork me on GitHub