Message146189
fragment identifiers:
the spec says:
"Fragment identifiers are meaningless in the context of WebSocket
URIs, and MUST NOT be used on these URIs. The character "#" in URIs
MUST be escaped as %23 if used as part of the query component."
[see last line of my initial comment]
I nevertheless added the ws/wss schemes to urlparse.uses_fragment so that I can detect them being used and throw.
Does urllib throw when an URL contains a fragment identifier, but the scheme of the URL is not in urlparse.uses_fragment?
If so, thats fine and of course better than putting the burden of checking on the user.
==
Further, when "#" is to be used in a WS URL, it MUST be encoded, and if so, it's interpreted as part of the query component.
So in summary, I think the best would be:
urllib throws upon non-encoded "#", and interpret it as part of the query component when encoded. |
|
Date |
User |
Action |
Args |
2011-10-22 20:47:34 | oberstet | set | recipients:
+ oberstet, orsenthil, ezio.melotti, nailor |
2011-10-22 20:47:34 | oberstet | set | messageid: <1319316454.48.0.762240675949.issue13244@psf.upfronthosting.co.za> |
2011-10-22 20:47:33 | oberstet | link | issue13244 messages |
2011-10-22 20:47:33 | oberstet | create | |
|