Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
http.sys: Error decoding URL style (%XX) encoded string at position 43
#1
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=f1mF...8%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
Reply
#2
(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=f1mF...8%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?

Reply
#3
(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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)