wodWebServer - bug report - QueryVariables (wodWebServer / wodWebServer.NET)
Hello again,
I have found (what I believe) to be a bug in QueryVariables when parsing the http request into names and values. With the current model I think its impossible to transfer + (plus sign) in e.g. a php request.
for examples, string below:
uid=12&id=C 3A 5C-+- 5C
SHOULD correctly be encoded to:
uid=12&id=C:-+-
BUT is encoded to :
uid=12&id=C:-- (without the plus sign)
By the way: I would appreciate in future version if you can exposed the encoding/decoding functions for public calls. This would be handy for VB6 users:)
Regards,
Michael
Re: wodWebServer - bug report - QueryVariables
This is a continuation on my previous post!
Sorry for being so confused,
1. On this page the decoding works as I expect:
http://netzreport.googlepages.com/online_tool_for_url_en_decoding.html
The + symbol is not removed!!
2. On this page (http://www.string-functions.com/urldecode.aspx) the coding is not working as expected: + symbol is replaced!
Re: wodWebServer - bug report - QueryVariables
Hi Micke,
I'll check this out with our developers, but actually most of the online URLDecode engines i tried decode it exactly as we do.
I.e:
http://www.string-functions.com/urldecode.aspx
http://sqa.fyicenter.com/Online_Test_Tools/__Test_urldecode_PHP_Function.php
In fact, If I'm correct + character is reserved, and should be encoded into 2B . If you use that and request page with queryvariables such as uid=12&id=C 3A 5C- 2B- 5C you should receive an appropriate value.
Can you check that out?
Regards,
Damba
Re: wodWebServer - bug report - QueryVariables
My bad,
Right, + is reserved. After some checking on other forums I realize that an URL with + SHOULD not be a valid URL. Thus, the problem is NOT in your component but on the incoming side to the server.
Feel free to remove this thread from the forum.
Thanks!
Michael