grequests icon indicating copy to clipboard operation
grequests copied to clipboard

duplicate query keys not possible with GET requests

Open GregorioDiStefano opened this issue 8 years ago • 2 comments

Firstly, great package! Thanks for making this.

It seems that it's not possible to create a GET request, with parameters such as "http://localhost/file?tags=a&tags=b" since Params is a map.

See here:

ro := &RequestOptions{
	Params: map[string]string{"Hello": "Goodbye"},
}
Get("http://httpbin.org/get?Hello=World", ro)

would you accept a pull request to fix this?

Thanks, Greg

GregorioDiStefano avatar Jun 11 '17 20:06 GregorioDiStefano

Sure -- I have been meaning to change this API

levigross avatar Jun 13 '17 01:06 levigross

post same param name is not work ,like post htt://a.com body a[]=1 a[]=2 please help me

luotianzhu avatar Mar 31 '23 05:03 luotianzhu