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

Discussion in 'ASP .Net' started by John Dalberg, Jan 21, 2005.

  1. John Dalberg

    John Dalberg Guest

    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.


    --
    John Dalberg
     
    John Dalberg, Jan 21, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dave Tichenor
    Replies:
    3
    Views:
    32,186
    Steven Cheng[MSFT]
    Feb 17, 2004
  2. =?Utf-8?B?UmFlZCBTYXdhbGhh?=

    Line Feed & Carriage Return with XML?

    =?Utf-8?B?UmFlZCBTYXdhbGhh?=, Oct 25, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    12,131
    Kevin Spencer
    Oct 25, 2004
  3. rjweytens
    Replies:
    3
    Views:
    8,118
    rjweytens
    Jul 30, 2004
  4. Replies:
    2
    Views:
    11,295
    Boudewijn Dijkstra
    Aug 30, 2005
  5. Steve Anderson
    Replies:
    3
    Views:
    266
    Steve Anderson
    Jun 21, 2004
Loading...

Share This Page