IronWikiRequestDemo

Enter a topic name to show or a new topic name to create; then press Enter
Summary
a demonstration of extracting information form the Request object via the IronWikiWikiRequest object

Demo for WikiRequest object

This shows the output available for data about the current HttpRequest from IronWiki

wr = WikiRequest()
so = UtilityProperties.Now + UtilityProperties.Newline
so = so + 'Url: ' + wr.Url + UtilityProperties.Newline
so = so + 'IP: ' + wr.VisitorIdentity+ UtilityProperties.Newline
so = so + 'IsAuthenticated: ' + wr.IsAuthenticated.ToString() + UtilityProperties.Newline
if wr.AuthenticatedUserName :
    so = so + 'User: ' + wr.AuthenticatedUserName + UtilityProperties.Newline
else :
    so = so + 'User: ' + UtilityProperties.Newline
items = wr.ParameterNames
for item in items :
    so = so + '	1. Param: ' + item  + UtilityProperties.Newline
so = so + 'Btn: ' + wr.GetParameterNamed('btnSubmit') + UtilityProperties.Newline
so = so + 'Session: ' + wr.GetCookie('ASP.NET_SessionId') + UtilityProperties.Newline
ScriptOutput = so

unsupported operand type(s) for +: 'str' and ' NoneType'

Version: 4   Revised: 2013-04-13 18:48:51 Last Updated by: Rename Show Links to Topic