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

document that URLs should be normalized before being passed #9

Open
xxx opened this issue Sep 6, 2012 · 0 comments
Open

document that URLs should be normalized before being passed #9

xxx opened this issue Sep 6, 2012 · 0 comments

Comments

@xxx
Copy link
Contributor

xxx commented Sep 6, 2012

I just ran into a gotcha where the url http://thegenericman.com/assets/img/product_images/tgm large/GNRCMAN_122211-739.jpg (i.e. with a space in it) was failing due to cURL not normalizing urls, and hence pulling in the wrong file. I'm aware that this url is invalid, but actually fixing it is out of my hands.

Why cURL does not handle this itself is discussed here.

Normalizing the above url to http://thegenericman.com/assets/img/product_images/tgm%20large/GNRCMAN_122211-739.jpg resolves as expected.

Just a heads-up for anyone else that may run into mysterious failures.

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

1 participant