Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jan Molbech 31 posts 76 karma points
    Feb 10, 2012 @ 10:27
    Jan Molbech
    0

    requestServerVariables returns blank

    After i have moved a fully functinal site from my local dev machine (using IIS express) onto a server (using IIS 7.0)

    i have a problem with my xslt. A some point in my xslt i set a variable like this.

    <xsl:variable name="cururl" select="umbraco.library:RequestServerVariables('REQUEST_URI')"/>

    Apparently the RequestServerVariable('REQUEST_URI') now returns nothing.

    How come? What does IIS Express do differently than IIS?

  • Rodion Novoselov 694 posts 859 karma points
    Feb 10, 2012 @ 14:35
    Rodion Novoselov
    0

    Hi. AFAIK the REQUEST_URI server variable is specific for configurations with the FastCGI module enabled (that's true for IIS Express since this module goes along with it out of the box). Perhaps you could play with enabling FastCGI module on your IIS in order  to enable this variable but I think it would be better just not to use the one since it's sort of "nonstandard" for IIS.

  • Jan Molbech 31 posts 76 karma points
    Feb 10, 2012 @ 14:40
    Jan Molbech
    0

    So which one would you suggest that i use?

  • Rodion Novoselov 694 posts 859 karma points
    Feb 10, 2012 @ 14:50
    Rodion Novoselov
    0

    I've hardly ever used raw server variables, but I suppose that you could get what you need by combining the "URL" and "QUERY_STRING" ones.

Please Sign in or register to post replies

Write your reply to:

Draft