Quantcast
Channel: ASPNETWebStack Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 7215

Edited Unassigned: FormUrlEncodedContent breaks on large values [1042]

$
0
0
Due to FormUrlEncodedContent's use of Uri.EscapeDataString() internally, it is unable to post values exceeding ~32k in length (Uri.EscapeDataString() is documented to throw UriFormatException if the string length exceeds 32766 characters). Some web services (in this case, Bill.com) require the use of application/x-www-form-urlencoded posts instead of something more sensible to upload files, so we have to build up the form body by hand. FormUrlEncodedContent.Encode should use a Uri string encoder not subject to the RFC limits (or get an overload added to Uri's that ignores them).

Sample reproduction attached.

Viewing all articles
Browse latest Browse all 7215

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>