![]() |
|
Http.sys questions - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Http.sys questions (/thread-2579.html) |
RE: Http.sys questions - Alexandre Machado - 01-27-2022 (01-27-2022, 12:21 PM)magosk Wrote: I have now focused a bit more on the shutdown problems (access violations etc.) I mentioned earlier (when running with http.sys rather than Indy). When I tested our main web application with IW 15.2.49 I saw no such problems, neither when run as a service nor when run as an application. But with our two other web applications I still had the issues when running as an application. As they share much code I tried to sort out the differences. I noticed that we had IWStartHSys (and previously IWStart) placed differently in the project uses clause. In the ones where I saw problems I had it pretty high up in the list of units, after IWJclDebug and IWJclStackTrace, whereas it was further down the list in the main web application. And when I move this unit down in the list, the shutdown problems seem to disappear. Do you have an explanation for this? Is it recommended to have the unit absolutely last in the uses list? I'll run some tests and let you know. AVs shouldn't happen in either case RE: Http.sys questions - magosk - 01-28-2022 (01-27-2022, 09:18 PM)Alexandre Machado Wrote:(01-27-2022, 07:45 AM)magosk Wrote: Thanks for the explanation Alexandre! I just did this modification, so that the code would still work with IW 15.1 and prior, but do no change to the response in IW 15.2 when it is already a redirect (I guess the issue was that a duplicate Location header was created before): Code: procedure ChangeResponseCodeFromOKToRedirect(const URL: string);RE: Http.sys questions - magosk - 01-31-2022 Hi again. Just got an error report from tests of our web applications built with the latest IW version. I analyzed this and it was related to how URL parameters are interpreted. We have a parameter 'k' containing '+' characters which we read directly from WebApplication.RunParams.Values['k'] before (with IW 15.1.15) without problems, but now I get a string with '%2B' substrings instead of '+' (which is it's URL encoded form). So it seems like the (automatic) URL parameter decoding has changed from 15.1.15 to 15.2.49, can you confirm that? Fixing this particular case with e.g. a StringReplace is of course easy, but I would like to know if I should do any changes in the general case where URL parameters (potentially including encoded characters) are involved? (we use that in more places in the web applications) /Magnus |