Title: Removing a set FilePath Post by: Dany on April 01, 2014, 10:19:52 AM Hi!
I would like to know where the best place to remove a virtual path would be. Something like "FixupRequest". A request coming in with http://anyhost.dom/virt/anything.html i would like to convert to http://anyhost.dom/anything.html before any TRtcDataProviders get at the request. Only if the "virtual path" exactly matches my "setting", in this case "virt". Thank you, /Dany Title: Re: Removing a set FilePath Post by: D.Tkalcec (RTC) on April 01, 2014, 01:34:31 PM You can do it inside the OnCheckRequest of a TRtcDataProvider component, without calling Accept. For the OnCheckRequest of that DataProvider to get called before any other components OnCheckRequest, make sure the CheckOrder value is lower than CheckOrder of all other assigned DataProvider or ServerModule components.
Best Regards, Danijel Tkalcec Title: Re: Removing a set FilePath Post by: Dany on April 01, 2014, 01:38:14 PM Ah, brilliant! Exactly what i need.
Thanks, /Dany |