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

Not work with url with ':' #480

Closed
pnvasko opened this issue Aug 31, 2015 · 9 comments
Closed

Not work with url with ':' #480

pnvasko opened this issue Aug 31, 2015 · 9 comments
Labels
Milestone

Comments

@pnvasko
Copy link

pnvasko commented Aug 31, 2015

Hi,

get trouble with use aiohttp:
http://www.homeaway.com/search/refined/world/region:1/Leisure+Activities:golf
don't give correct answer. urllib.request work correct

regards,
V

@popravich
Copy link
Member

Hi @pnvasko,
Can you be more specific? How exactly aiohttp does not provide correct answer?
I've just tried and got 200 ok with body about 30Kb.

@pnvasko
Copy link
Author

pnvasko commented Aug 31, 2015

Change target url. For sample ask - http://www.homeaway.com/search/refined/world/region:1/Leisure+Activities:golf, get content like this page http://www.homeaway.com/search

@popravich
Copy link
Member

ok, I see.
Actually the problem is with + it gets quoted into %2B

@pnvasko
Copy link
Author

pnvasko commented Aug 31, 2015

What can I do ?

понедельник, 31 августа 2015 г. пользователь Alexey Popravka написал:

ok, I see.
Actually the problem is with + it gets quoted into %2B


Reply to this email directly or view it on GitHub
#480 (comment).

@popravich
Copy link
Member

@fafhrd91, @asvetlov guys!
The problem is here aiohttp/client_reqrep.py:178
I've 'blamed' that line to the very begining (f382b5f)
and I could not see why path should be re-quoted.
The urlsplit returns path as is, so if it was already quoted it gets double-quoted.
And it also leads to re-quoting of location header in redirects.

I think we should remove this quoting of path and leave it up to end-users.
What do you think?

@asvetlov
Copy link
Member

I think we should make trivial one-page app displaying request.raw_path then open the page in browser and play with different characters in path string.

Reference to standard is also good but I like to see what does Chrome and Firefox in case of suspicious symbols

@asvetlov asvetlov added this to the 0.18 milestone Sep 1, 2015
@asvetlov
Copy link
Member

asvetlov commented Sep 1, 2015

I've made a PR for the issue: #484

URL requoting is borrowed from requests library, I've checked it in Chrome and Firefox also.

@pnvasko
Copy link
Author

pnvasko commented Sep 1, 2015

Thank you!

2015-09-01 21:48 GMT+07:00 Andrew Svetlov notifications@github.com:

I've made a PR for the issue: #480
#480

URL requoting is borrowed from requests library, I've checked it in Chrome
and Firefox also.


Reply to this email directly or view it on GitHub
#480 (comment).

asvetlov added a commit that referenced this issue Sep 2, 2015
Fix #480: Properly requote URL's path
@lock
Copy link

lock bot commented Oct 29, 2019

This thread has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue for
related bugs.

If you feel like there's important points made in this discussion,
please include those exceprts into that new issue.

@lock lock bot added the outdated label Oct 29, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Oct 29, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants