Re: [lwip-users] Decode HTTP URI

2018-05-24 Thread Giuseppe Modugno
Il 22/05/2018 22:12, goldsi...@gmx.de ha scritto: On 22.05.2018 11:11, Giuseppe Modugno wrote: I'm not sure. Is there a decoding function for URI? I mean, a function that converts %20 and similar escape codes in the corresponding ASCII char. Our httpd does not (yet?) support this. If you real

Re: [lwip-users] Decode HTTP URI

2018-05-22 Thread goldsi...@gmx.de
On 22.05.2018 11:11, Giuseppe Modugno wrote: I'm not sure. Is there a decoding function for URI? I mean, a function that converts %20 and similar escape codes in the corresponding ASCII char. Our httpd does not (yet?) support this. If you really need spaces in URLs on your server, you need to

Re: [lwip-users] Decode HTTP URI

2018-05-22 Thread Sergio R. Caprile
I guess you refer to "url_decode". Here's the one I used in my web server: #define TOUPPER(c) (((c>='a')&&(c<='z'))? (c-('a'-'A')):(c)) #define HEXNUMBER(c) c)<'0')||((c)>'F')||(((c)>'9')&&((c)<'A')))? 0 :((c)>=' A')?((c)-('0'+7)):((c)-'0')) void cgi_urldecode(char *text) { char *ptr = text;

[lwip-users] Decode HTTP URI

2018-05-22 Thread Giuseppe Modugno
I'm not sure. Is there a decoding function for URI? I mean, a function that converts %20 and similar escape codes in the corresponding ASCII char. ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users