title: URL too long for OData and ASP.NET Core
body: <p>I've set up an OData service using ASP.NET Core Web API with OData (<a href="https://www.nuget.org/packages/Microsoft.AspNetCore.OData/" rel="nofollow noreferrer">Microsoft.AspNetCore.OData</a>). </p>
  
  <p>My unbound function has one parameter accepting a string that can be very long: <code>http://localhost:5000/odata/MyFunction(ids='a,b,c,d,e,f')</code>.</p>
  
  <p>This works fine if the length of <code>ids</code> doesn't get too big. However, when passing a too long string, the request fails with <code>HTTP 400</code>. </p>
  
  <p><a href="https://stackoverflow.com/a/18905443/4919526">I've already tried this</a> - unfortunately, it didn't work.</p>
  
  <p>How do I have to configure the app so that long requests are supported both in production (<a href="https://docs.microsoft.com/en-us/aspnet/core/fundamentals/servers/kestrel?view=aspnetcore-3.1" rel="nofollow noreferrer">Kestrel</a>) and dev (<a href="https://docs.microsoft.com/en-us/iis/extensions/introduction-to-iis-express/iis-express-overview" rel="nofollow noreferrer">IIS Express</a>) mode?</p>