Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

duplicate query keys not possible with GET requests #51

Open
GregorioDiStefano opened this issue Jun 11, 2017 · 2 comments
Open

duplicate query keys not possible with GET requests #51

GregorioDiStefano opened this issue Jun 11, 2017 · 2 comments

Comments

@GregorioDiStefano
Copy link

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

@levigross
Copy link
Owner

Sure -- I have been meaning to change this API

@luotianzhu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants