Atozed Forums
http.sys: Error decoding URL style (%XX) encoded string at position 43 - Printable Version

+- Atozed Forums (https://www.atozed.com/forums)
+-- Forum: Atozed Software Products (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: Error decoding URL style (%XX) encoded string at position 43 (/thread-800.html)



http.sys: Error decoding URL style (%XX) encoded string at position 43 - ioan - 11-05-2018

I think I found a problem with decoding query strings in applications built with http.sys.

If I try to open this in an application made with indy, everything works fine:
http://127.0.0.1/?level=sslfaxv3&id=f1mFiOlnZy00Tu8%2FpUHJ%a

If I try to open it with application built with http.sys, I get the error:
Error decoding URL style (%XX) encoded string at position 43


RE: http.sys: Error decoding URL style (%XX) encoded string at position 43 - rlebeau - 11-06-2018

(11-05-2018, 10:27 PM)ioan Wrote: If I try to open this in an application made with indy, everything works fine:
http://127.0.0.1/?level=sslfaxv3&id=f1mFiOlnZy00Tu8%2FpUHJ%a

The %a at the end of the URL should be %0a or %0A instead.  Characters encoded in %HH format must always have 2 hex digits. Indy is lenient about that at the end of a URL (not in the middle). Perhaps http.sys is not.

(11-05-2018, 10:27 PM)ioan Wrote: If I try to open it with application built with http.sys, I get the error:
Error decoding URL style (%XX) encoded string at position 43

Is position 43 in the URL the %a at the end?  If not, what is at position 43 exactly?


RE: http.sys: Error decoding URL style (%XX) encoded string at position 43 - ioan - 11-06-2018

(11-06-2018, 03:36 AM)rlebeau Wrote: Is position 43 in the URL the %a at the end?  If not, what is at position 43 exactly?

Yes, the position 43 is %a