Skip to content

Normalising percent-encoded characters in paths can cause issues with non-compliant server implementations. #1646

Discussion options

You must be logged in to vote

So, yeah you've kind identified what's going on here...

The server is redirecting any path with uppercased percent encoded characters to the same path but with lowercased percent encoded characters.

Make the request using curl, and it'll redirect in the uppercased variant:

$ curl -v https://www.reezocar.com/occasion/annonce-willys%2Foverland-overland-RZCCSTFR187849.htm
# 301 to: https://www.reezocar.com/occasion/annonce-willys%2foverland-overland-RZCCSTFR187849.htm

But 200 in the lowercased variant:

$ curl -v https://www.reezocar.com/occasion/annonce-willys%2foverland-overland-RZCCSTFR187849.htm
# 200

Now, actually, the lowercase variant isn't rfc3986 compliant, so when you're using requests

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tomchristie
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants