Message146192
| Author |
nailor |
| Recipients |
ezio.melotti, nailor, oberstet, orsenthil |
| Date |
2011年10月22日.21:03:53 |
| SpamBayes Score |
7.866835e-05 |
| Marked as misclassified |
No |
| Message-id |
<1319317433.89.0.729245716793.issue13244@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Actually, if I get it right, it means that following url is valid:
ws://example.com/something#somewhere/
and the # should be considered as being a part of the path. The spec does not say a thing should the # in path component be encoded, so I think it's safe to assume it should can be unencoded. However, following url
ws://example.com/something?query=foo#bar
Is not considered to be valid, as the # is in the query part and is not escaped. So the valid would be:
ws://example.com/something?query=foo%23bar
I think the motivation behind this is to reduce possible conflicts with browsers that might take the #-part as a fragment when it should be part of the query parameters. However, the confusion is still possible with # in path part.
My take on this would be to omit fragments and just parse the url as is without fragments. Encoding could be left to user, even in the case # is in query part. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年10月22日 21:03:53 | nailor | set | recipients:
+ nailor, orsenthil, ezio.melotti, oberstet |
| 2011年10月22日 21:03:53 | nailor | set | messageid: <1319317433.89.0.729245716793.issue13244@psf.upfronthosting.co.za> |
| 2011年10月22日 21:03:53 | nailor | link | issue13244 messages |
| 2011年10月22日 21:03:53 | nailor | create |
|