[MonoDevelop] Why is the action name in MVC application case sens itive?
IBBoard
ibboard at gmail.com
Tue Nov 23 08:43:34 EST 2010
More accurately, the path part of a domain is case-sensitive, but the
domain name is case-insensitive (i.e. it is always assumed to be
lower-case).
Windows/IIS does break the rule and treat file paths as
case-insensitive when acting as a web server, but that's because it is
Windows rather than because it is the correct thing to do.
Look at it this way - if you treated the second part of the path (the
thing after "cat") as a value that you could switch on then "list" !=
"List", and so your switch statement would fail. You can choose to
make it a case-insensitive comparison, but that would be a specific
choice.
Regards,
IBBoard
(Resent, because GMail didn't want to do a "reply to all")
On 23 November 2010 13:42, IBBoard <ibboard at gmail.com> wrote:
> More accurately, the path part of a domain is case-sensitive, but the
> domain name is case-insensitive (i.e. it is always assumed to be
> lower-case).
>
> Windows/IIS does break the rule and treat file paths as
> case-insensitive when acting as a web server, but that's because it is
> Windows rather than because it is the correct thing to do.
>
> Look at it this way - if you treated the second part of the path (the
> thing after "cat") as a value that you could switch on then "list" !=
> "List", and so your switch statement would fail. You can choose to
> make it a case-insensitive comparison, but that would be a specific
> choice.
>
> Regards,
>
> IBBoard
>
>
>
> On 22 November 2010 23:06, Ian Norton
> <Ian.Norton-Badrul at thales-esecurity.com> wrote:
>> Urls are case sensitive.
>>
>> Mohammad Azam <azamsharp at gmail.com> wrote:
>>
>>
>> Why the following two urls are different?
>>
>> http://127.0.0.1:8080/cat/List
>>
>> and
>>
>> http://127.0.0.1:8080/cat/list
>>
>> --
>> Mohammad Azam
>> MVP (Microsoft Valuable Professional)
>> www.highoncoding.com<http://www.highoncoding.com>
>> www.azamsharp.com<http://www.azamsharp.com>
>> Check out my iPhone app "ABC Pop" http://itunes.apple.com/us/app/abc-pop/id392527680?mt=8
>>
>> _______________________________________________
>> Monodevelop-list mailing list
>> Monodevelop-list at lists.ximian.com
>> http://lists.ximian.com/mailman/listinfo/monodevelop-list
>>
>
More information about the Monodevelop-list
mailing list