Re: Bug in HttpRequestFormPost - WeOnlyDo Discussion board

Re: Bug in HttpRequestFormPost (General questions)

by wodSupport, Wednesday, November 23, 2005, 20:40 (6939 days ago) @ Saurabh

Saurabh,

I was able to duplicate your problem - and you're correct. However, I cannot call this a bug, rather it's a feature. wodHttpDLX cannot change FormPost-ed values once they're set, you can only add new ones. So, after they're added, they are read-only.

This is because at the moment you do FormPost.Add, request Body is setup immediately. Changing values later on would require large parsing. It's much more easier - and more efficient if they're only intialy set.

If you think about it - you can easily make workaround this. You could store to be posted values in your own Collection, and then at the moment you would do actual POST call you can add them to FormPost collection - in which case you are always sure they're added correctly.


Complete thread: