locked
Handler for the request http://<server_name>/someUser@test.com/users/user RRS feed

  • Question

  • User2144538127 posted
    Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> I am trying to create an application that can handle request like http://<server_name>/someUser@test.com/users/user/FirstName I tried to use HTTP handler but custom HTTP handlers are based on file extension mapping (cant specify a regular expression through IIS Virtual directory configuration). Is it achievable through custom HTTP handler? Or is it achievable at all (some other techniques like URL mapping\rewrite)?<o:p></o:p>

     Thanks,

    Yash<o:p></o:p>
    Tuesday, September 11, 2007 1:31 PM

Answers

  • User-2060689755 posted

    Hi Yash,

    Base on my understanding, you want to handle a file without extension. If I have misunderstood you, please let me know. thanks.

    As far as I know, it can't achieve. Httphandle is base on file extension mapping.

     

    Best regards,
    Guang-Ming Bian - MSFT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 17, 2007 5:45 AM
  • User2019766093 posted

    You can setup IIS and ASP.NET to handle requests for files that do not have extensions - url rewriters do this.

    However, in your case, I think the problem is the @ - which has a special meaning in urls. You can pass credentials in the url in the format:

    http://<username>:<password>@test.com/default.aspx

    I believe your sample url is trying to connect to test.com and not <server_name>.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 17, 2007 11:21 AM

All replies

  • User-2060689755 posted

    Hi Yash,

    Base on my understanding, you want to handle a file without extension. If I have misunderstood you, please let me know. thanks.

    As far as I know, it can't achieve. Httphandle is base on file extension mapping.

     

    Best regards,
    Guang-Ming Bian - MSFT

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 17, 2007 5:45 AM
  • User2019766093 posted

    You can setup IIS and ASP.NET to handle requests for files that do not have extensions - url rewriters do this.

    However, in your case, I think the problem is the @ - which has a special meaning in urls. You can pass credentials in the url in the format:

    http://<username>:<password>@test.com/default.aspx

    I believe your sample url is trying to connect to test.com and not <server_name>.

     

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, September 17, 2007 11:21 AM
  • User-2060689755 posted

    Hi Yashpurohit,

    jshepler is correct, if you use url rewrite , you can implement the function. but if you only use httphandle, I am afraid it can't achieve.

     

    Best regards,
    Guang-Ming Bian - MSFT

    Tuesday, September 18, 2007 6:46 AM