Summary: | HTTP GET Requests erase "Content-length" Header | ||
---|---|---|---|
Product: | JMeter | Reporter: | Zaki_XL <resist> |
Component: | HTTP | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | CC: | p.mouawad |
Priority: | P2 | ||
Version: | 2.13 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: | JMeter TEST |
Description
Zaki_XL
2015-03-23 01:57:37 UTC
Hello, Is it possible to submit a simple jmeter test showing issue ? Or set in user.Properties this: log_level.org.apache.http=DEBUG log_level.org.apache.http.wire=DEBUG Launch the test and show the expected request/response and what you get instead ? Plus the used test plan. Thanks Note that JMeter does not allow override of Content-Length in Headers as it is computed by HttpClient Is this the issue your are facing ? Created attachment 32610 [details]
JMeter TEST
Erasticsearch percolator TEST
attached. I have wanted to throw the following request to the server. I shows an example in the curl command. ------------------------- curl -XGET \ https://www.test-erasticsearch.com/filter/message/_percolate?pretty \ -d '{ "highlight": { "fields": { "message": { "pre_tags": ["("], "post_tags": [")"] } } }, "size": 20, "doc": { "message": "HOGE FUGA XXXX" } }' ------------------------- request header in the curl command (a little modification) ------------------------- > GET /filter/message/_percolate?pretty HTTP/1.1 > User-Agent: curl/7.30.0 > Host: www.test-erasticsearch.com > Accept: */* > Content-Length: 314 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 314 out of 314 bytes When using Body Data with GET method, body is not sent nor Content-Length computed. To do so, you need to use Parameters tab as you did it in the disabled HTTP Request. Thank you for answer I decided to accept the constraints Will the reason for this is to erase the content-length when the GET method? Future I'm think the more hope "want to test the REST API" |