forms - WebClient.UploadValues Duplicate Key -
I'm having trouble proxying a request on my site.
In principle, it should work
webClient.UploadValues (URL, "Post", http Contex. Current request).
Unfortunately, the duplicate key "elemkey" in the form
When I use the HTTP Analyzer and see the post data, it three times three times with different values Shows Parameter value
elemKey value1 elemKey value2 elemkey value3
Unfortunately, the call creates a webclient once the key is from the list of individual values, which does not work.
parameter value elemkey value1, value2, value3
I tried to create a NameValueCollection from the HttpContext.Current.Request.Form variable and adding several elemkeys, but again, Together with a comma.
Is there any way I can make this request the way I need it?
thanks-c
I've used UploadString instead of UploadValues And now all well
string HTML = webClient.UploadString (url, "POST", HttpContext.Current.Request.Form. String ());
Comments
Post a Comment