Jump to content

How to get parameters from www.example.com/test/test?user=name1


willemh

Recommended Posts

Hi all.

what I want to do is to get parameters when they are not directly behind the domain name. 

What I did was in the OnHTTPCommand event retrieve the parameters (they are known at that point) and set a redirect to www.example.com/?user=name1

Biggest problem at this point is that the method described doesnt work in IIS.

Is there a workaround or am I doing something very wrong?

Link to comment
Share on other sites

That is just the problem, the UniApplication.Paramters aren't filled when there is a URI before the parameter.

So www.example.com/?user=name1 works like expected, however www.example.com/test/test/?user=name1 does not! In the last case the parameters aren't filled.

 

mvg,

 

willem.

Link to comment
Share on other sites

Unfortunaly, that doesn't work either.

Let me clarify something. I set the URI for the historystate in the browser window. When browsing through a catalog app, I set the categories accourdingly in the browser address (eg historystate) for readablity. What I am trying to do is that if a user copies a link (www.site.com/category1/subcategroy2/?category=1234) I get the category parameter and can reconstruct where the user was.

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...