Op 4-9-2025 om 20:33 schreef hmmmz1000--- via dovecot:
Hello,
I'm using dovecot (2.3) lua with dovecot.http.client but I need the request url to have an url encoded slash (/) as %2F (or %2f) but if I enter for example https://test.com/%2F/test it looks like it changes it to a slash (https://test.com///test) in the http debug log (also the request fails as it's not %2F).
I've also tried with %252F to encode the % but that doesn't change at all (keeps being %252F) & also tried with %%2F and \%2F but that gets the errors "Expecting hex digit after '%', but found '%'" for %%2F and "invalid escape sequence" for \%2F.
Does anyone have an idea how to solve this or if it's even possible?
This is currently not possible because the URL path is stored fully decoded upon parsing. When it is re-encoded (normalized) later to produce the HTTP request target, all '/' look the same and are left literal.
Regards,
Stephan.
dovecot mailing list -- dovecot@dovecot.org To unsubscribe send an email to dovecot-leave@dovecot.org