简体   繁体   中英

POST request results is HTTP 415 error through JMeter proxy

I try to implement a load test in jmeter for a web service written in java (Spring MVC+Hibernate). The server is RESTFull and a client (in angularjs) communicates with server.

I want to dump HTTP request with jmeter HTTP Request recorder the same as a tutorial on jmeter user guides .

The problem is that I keep on getting a 415 Http error while using jmeter as proxy on web browser. So the webpage is faced with an error while trying to post data and fails.

HTTP Status Code 415 stands for Unsupported Media Type , it means that Content-Type header is either incorrect or missing.

JMeter shouldn't be removing this header so my expectation is that either there is a problem with your application or with JMeter itself.

Try recording your test scenario using ie JMeter Chrome Extension and if it will be successful - please raise a ticket in JMeter Bugzilla

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM