WebUtils.LoadOptionalRequestParam method can not recognize the '+'.

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/10/2012 8:39:55 AM
Gravatar
Total Posts 550

WebUtils.LoadOptionalRequestParam method can not recognize the '+'.

Hi Joe,

It seems WebUtils.LoadOptionalRequestParam method can not recognize the '+' character in the parameters that POST via a request.I use it for getting results that send to my site from a payment gateway and this method returns parameter value without "+".

Best,

Asad

4/10/2012 8:58:11 AM
Gravatar
Total Posts 18439

Re: WebUtils.LoadOptionalRequestParam method can not recognize the '+'.

+ is just url encoded space, it should not be used as an actual query string parameter value, it is supposed to be replaced back to space by urldecoding

Hope that helps,

Joe

4/10/2012 9:59:08 AM
Gravatar
Total Posts 550

Re: WebUtils.LoadOptionalRequestParam method can not recognize the '+'.

Thanks Joe.

+ post to my site via POST method, not as  query string parameter.

4/10/2012 10:30:36 AM
Gravatar
Total Posts 18439

Re: WebUtils.LoadOptionalRequestParam method can not recognize the '+'.

+ also represents a space in form posts

I suggest use something other than plus sign or parse it your own way instead of relying on this method.

You must sign in to post in the forums. This thread is closed to new posts.