You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/03/23 02:57:37 UTC
[Bug 57739] New: HTTP GET Requests erase "Content-length" Header
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
Bug ID: 57739
Summary: HTTP GET Requests erase "Content-length" Header
Product: JMeter
Version: unspecified
Hardware: PC
OS: Mac OS X 10.4
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: resist@dol.hi-ho.ne.jp
Using the HTTP GET request, Content-length header is lost
When sending a BODY a GET request REST API, there is no Contet-length, problems
that can not recognize the end of the request is generated (when testing the
erastic-search, it was noticed a problem)
I tried to send a similar GET request with curl command but, content-length
header was sent.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
--- Comment #2 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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 ?
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Hardware|PC |All
Version|unspecified |2.13
OS|Mac OS X 10.4 |All
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #7 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
*** This bug has been marked as a duplicate of bug 60358 ***
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
--- Comment #3 from Zaki_XL <re...@dol.hi-ho.ne.jp> ---
Created attachment 32610
--> https://bz.apache.org/bugzilla/attachment.cgi?id=32610&action=edit
JMeter TEST
Erasticsearch percolator TEST
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
--- Comment #4 from Zaki_XL <re...@dol.hi-ho.ne.jp> ---
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
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
--- Comment #6 from Zaki_XL <re...@dol.hi-ho.ne.jp> ---
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"
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|normal |enhancement
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
--- Comment #5 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57739] HTTP GET Requests erase "Content-length" Header
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=57739
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |p.mouawad@ubik-ingenierie.c
| |om
Status|NEW |NEEDINFO
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
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
--
You are receiving this mail because:
You are the assignee for the bug.