Closed GoogleCodeExporter closed 9 years ago
This seems really bad.. Need to investigate it. Thanks for reporting.
Original comment by johan.ha...@gmail.com
on 16 Oct 2014 at 1:14
This only seem to happen on GET requests since they shouldn't have content. Why
do you need a content-type for a GET request? Are you sure you're not mistaken
it for a accept header?
(http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1)
Original comment by johan.ha...@gmail.com
on 16 Oct 2014 at 1:19
You're right. I do a request to a Tomcat Servlet. And the Tomcat config has the
flag useBodyEncodingForURI="true". So it works for requests from other tools if
i set right encoding through headers.
I try to fix my problem with another flag: URIEncoding="UTF-8"
But I'm not sure if I'll get other problems, if legacy requests do GET requests
with setting encoding through header other than UTF-8.
Thanks.
Original comment by zingl.ma...@gmail.com
on 16 Oct 2014 at 3:23
I've actually fixed it in master. I'll push a new snapshot soon.
Original comment by johan.ha...@gmail.com
on 16 Oct 2014 at 4:42
I've published a new snapshot now. Please try it out by depending on version
2.3.5-SNAPSHOT after having added the following maven repository:
<repositories>
<repository>
<id>sonatype</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
<snapshots />
</repository>
</repositories>
Original comment by johan.ha...@gmail.com
on 16 Oct 2014 at 5:10
Working. Perfect.
Thank you.
Original comment by zingl.ma...@gmail.com
on 17 Oct 2014 at 9:56
Great, thanks for reporting and for testing it.
Original comment by johan.ha...@gmail.com
on 17 Oct 2014 at 10:03
Issue 365 has been merged into this issue.
Original comment by johan.ha...@gmail.com
on 24 Oct 2014 at 5:15
I am facing same issue with version 2.4.0. Mine is not the maven project, so do
i need to change to 2.3.5-SNAPSHOT version? If yes where can I download?
Thanks.
Original comment by jimipar...@gmail.com
on 18 Nov 2014 at 4:26
Could you give me an example of when it's not working? What's your code?
Original comment by johan.ha...@gmail.com
on 18 Nov 2014 at 4:35
My application sends response based on the request content type.
I am explicitly setting content typs as "application/json" in "get" request. In
request log also i see its setting it, but its not passing any content type to
server. So my application by default assume its as xml and sends back xml
response, but i expect json response.
Below is my request.
String response =
given().
contentType("application/json").
header("Content-Type", "application/json").
log().all().
expect().
statusCode(200).
log().all().
when().
get(url).body().asString();
Original comment by jimipar...@gmail.com
on 18 Nov 2014 at 4:48
Got it....
Its my mistake, I have version 2.3.4 not 2.4.0. I will try with 2.4.0 now.
Thanks.
Original comment by jimipar...@gmail.com
on 18 Nov 2014 at 5:00
Please tell us the result
Original comment by johan.ha...@gmail.com
on 18 Nov 2014 at 5:16
It worked with 2.4.0.
Thanks.
Original comment by jimipar...@gmail.com
on 18 Nov 2014 at 6:07
Good, thanks for sharing
Original comment by johan.ha...@gmail.com
on 18 Nov 2014 at 6:15
Original issue reported on code.google.com by
zingl.ma...@gmail.com
on 15 Oct 2014 at 1:13