wodWebServer - bug report - QueryVariables - WeOnlyDo Discussion board

wodWebServer - bug report - QueryVariables (wodWebServer / wodWebServer.NET)

by Micke, Wednesday, December 30, 2009, 23:42 (5440 days ago)

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

by Micke, Wednesday, December 30, 2009, 23:55 (5440 days ago) @ Micke

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

by wodDamir, Thursday, December 31, 2009, 00:19 (5440 days ago) @ Micke

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

by Micke, Thursday, December 31, 2009, 00:31 (5440 days ago) @ wodDamir

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