Carriage return/line feed padded to last value in a NameValueCollection

J

John Dalberg

I noticed that when I add key/value pairs to a NameValueCollection
variable and send this collection through a POST using
WebClient.UploadValues method, the recepient process receives the
collection ok except that the last value has a \r\n padded, which is not
expected. Is this normal behaviour?

My workaround is to add another pair/value which serves as dummy and let
the \r\n get padded to it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top