I have a webservice to give access to some resources on a network. The service has a method to look for the resource and returns the path of the resource. Another method, send to request to the webservice with this path.
I try to pass the entire UNC path (encoded with HttpServerUtlility.UrlTokenEncode
method) to the webservice. The resulting URI is very long (331 characters) and I get "HTTP 400 Bad Request".
How do I handle such long URIs? If my URI is shorter by some 10 characters, then the request goes through. Unfortunately, the size of URI is variable and can be more in some case. What changes do I need to make? Are there any setting in config file to allow for long URIs?