خرید بک لینک

Vote count: 0

I have an endpoint in my Web API 2 that gets a user by useame. Unfortunately if the useame has a period '.' in it I get an HTTP 404.0 error (the resource you are looking for is not found). However if I use the same test in Postman without the period character '.' it does actually route to the proper endpoint and tries to find the user passed. So, "joe.doe" gives me a 404 error but "joedoe" does not. I tried to Html encode it but it does not work either as the period character is not escaped even when I force it to be escaped to '%2e'. Strange as it may seem most other characters can be escaped, e.g. %20 - space, %60 - grave accent, etc. Is there a solution to this or do I just not let anyone create a useame with a period character in it?

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: پنجشنبه 3 تير 1395 ساعت: 7:37

صفحه بندی