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

Request::get. Multiple parameters with same name is truncated #111

Open
ad-git opened this issue Jul 15, 2016 · 3 comments
Open

Request::get. Multiple parameters with same name is truncated #111

ad-git opened this issue Jul 15, 2016 · 3 comments

Comments

@ad-git
Copy link

ad-git commented Jul 15, 2016

if the Url has multiple parameters using the same name (java rest server) it was truncated on get method, es.

someurl.php?name=aaa&name=bbb => someurl.php?name=bbb

It is due to Request::getArrayFromQuerystring($query) that use parse_str to split query param.

Thank you for the great work!

@CoudercJb
Copy link

Hello,

I've got the same problem while requesting a REST API. Did you find how to fix the problem ?

For example with Unirest :
https://requestb.in/1kvnon31?codearticle=15164&codearticle=15206

It sends only "codearticle=15206".

Thank you

@ad-git
Copy link
Author

ad-git commented May 31, 2017

My old pull request solve this issue and other, see: #114

@CoudercJb
Copy link

All right ! Thank you very much !

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

2 participants