Skip to content

document that URLs should be normalized before being passed #9

@xxx

Description

@xxx

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions