Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

You asked for a single example of two 'equal' URLs whose strings don't match up, and now you've got one.


Looking back, I did phrase it ambiguously. What I meant was two URLs that are equal by definition, (no matter the server config, assuming standards compliance). A (general) library should make no more assumptions than the standard it implements. What I was asking about were cases, similar to http://h/p?x1=a&x2=b being equal to http://h/p?x2=b&x1=a since query parameter order is defined to not matter.

The spec I am mostly familiar with is, however, rather new, and whatever standard controlled URLs at the time (if any) might have made more assumptions.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: