http.sys: Error decoding URL style (%XX) encoded string at position 43

<< Click to Display Table of Contents >>

Navigation:  Forum >

http.sys: Error decoding URL style (%XX) encoded string at position 43

Forum link

 


 

11-05-2018, 10:27 PM:

 

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

 


 

11-06-2018, 03:36 AM:

 

(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?

 


 

11-06-2018, 12:10 PM:

 

(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