willemh Posted November 27, 2018 Share Posted November 27, 2018 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? Quote Link to comment Share on other sites More sharing options...
erich.wanker Posted November 27, 2018 Share Posted November 27, 2018 procedure TMainForm.UniFormCreate(Sender: TObject); var username_string:String; begin username_string :=UniApplication.Parameters.Values['user']; .. ?? is this what you search? HTH Erich Quote Link to comment Share on other sites More sharing options...
willemh Posted November 27, 2018 Author Share Posted November 27, 2018 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. Quote Link to comment Share on other sites More sharing options...
adragan Posted November 27, 2018 Share Posted November 27, 2018 If it's a mobile app don't forget the "m" at the end of the URL. I got it that way allready. Try to read parameters at OnCreat event of the main form. In case of Apache + ISAP module and mobile app the URL should look like : https://yourdomain.com/alias_from_httpd.conf/name_of_isapi_module.dll/m/?param1=.....¶m2=...... Quote Link to comment Share on other sites More sharing options...
willemh Posted November 28, 2018 Author Share Posted November 28, 2018 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.