I am using an HttpClient
in Dotnet 5
and try to create a query with a very long URI. I get this exception
Invalid URI: The uri string is too long
I tried to figure out where it comes from and it seems it boils down to this line with a constant:
internal const int c_MaxUriBufferSize = 0xFFF0;
It seems that it is actually impossible to have a URL longer than 64K, but there is perhaps something I did not figure out?