I'm working on a project that requires a web server to listen for GET requests where the URL is structured as /function/JWT
where /function is the command and /JWT is a JSON web token. Arguments about the security of this practice aside, that's how the sender is providing the data.
I was able to build out some of the other requirements for this project using the System.Net.HttpServer class, but I'm finding now that it limits URL segments to something like 260 characters before it returns a 400 server error. I can't be changing registries every time I deploy this utility, so it seems like I might have to try something else.
How can I use .NET core to launch a web server that will detect when /function is the start of the absolute path and hand the JWT off to other code for interpretation? Some of the example tokens I have are over 500 characters long and they may be more in other cases so I need the max URL segment length to be much longer. Despite hours of research on this I can't find a simple answer to this seemingly simple problem.