Web api odata sending a long $filter string results in maxurlstring exceeds error
Asked Answered
T

0

2

I am trying to send a large $filter string to my webapi odata endpoint.But it gives me error saying the size of request headers are too long/maxurlstringlength exceeds.

Is there a way to send the $filter in "POST" request and query the odata endpoint? i cannot use the batch statement as i am using .net framework 4.0.

Tympany answered 25/11, 2013 at 8:28 Comment(3)
You can always increase the query string length in web.config see msdn.microsoft.com/en-us/library/e1f13641%28v=vs.100%29.aspxCytolysis
@eoghank- But is it a good practice to increase the query string length to a big value?Tympany
About 2000 chars is considered the limit - #417642. Is your $filter query string longer than this? That seems very large.Cytolysis

© 2022 - 2024 — McMap. All rights reserved.