rajtrivedi2001 / rest-client

Automatically exported from code.google.com/p/rest-client
Apache License 2.0
0 stars 0 forks source link

Multiple request params with same name #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Select POST method
2. Go to BODY
3. Try to add parameter with same name twice

What is the expected output? What do you see instead?
Multiple parameters with same name should be allowed.

What version of the product are you using? On what operating system?
2.3

Original issue reported on code.google.com by konradpawlus on 7 May 2009 at 9:24

GoogleCodeExporter commented 8 years ago
Are there any valid scenarios where such duplicate headers are encouraged by 
HTTP
specification? I will also analyze the code for feasibility of implementing 
this change.

Original comment by subwiz on 11 May 2009 at 3:30

GoogleCodeExporter commented 8 years ago
Well, headers - I don't think so, but request parameters? Thats e.g. how 
multiple
select is send over HTTP. We do send some array type params on request that 
way, in
Servlet Spec (JDK) there is eaven method on ServletRequest to get array of 
params
values for same parameter name (See:
http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/ServletRequest.ht
ml#getParameterValues(java.lang.String)
).

Original comment by konradpawlus on 11 May 2009 at 6:32

GoogleCodeExporter commented 8 years ago
Correct. I will implement it.

Original comment by subwiz on 17 May 2009 at 5:58

GoogleCodeExporter commented 8 years ago
r449 has introduced architectural changes needed for supporting duplicate 
parameters.

Original comment by subwiz on 18 Jan 2010 at 6:09

GoogleCodeExporter commented 8 years ago
r450 has this implementation.

Original comment by subwiz on 18 Jan 2010 at 8:07