Home C# web Api Long url Not working
Reply: 0

C# web Api Long url Not working

user912
1#
user912 Published in April 22, 2018, 6:51 am

I have the following web API url which is not working

www.localproject.com:843/api/user/validate/eyJhbGciOiJodHRwOi8vd3d3LnczLm9yZy8yMDAxLzA0L3htbGRzaWctbW9yZSNobWFjLXNoYTI1NiIsInR5cCI6IkpXVCJ9eyJ0ZW1wVXJsIjoie1wiQ3VzdG9tZXJJZFwiOjEsXCJDb3Vyc2VJZFwiOjEsXCJUb2tlblwiOm51bGwsXCJFeHBpcnlcIjpcIjIwMTgtMDQtMThUMTc6MzU6MTMuOTQ2MjM2NCswNTowMFwifSJ9uvm7jZ3us5UFa1hqh4bod2cSamcxF2rRUbfxs7DHQs

whenever I hit the above url It gives me following error

Bad Request - Invalid URL

HTTP Error 400. The request URL is invalid.

I updated my web.config to this as well but still not working.

 <httpRuntime targetFramework="4.6.1" maxRequestLength="20480" maxUrlLength="6144" relaxedUrlToFileSystemMapping="true" />

I also tried editing registry but no luck.

How to allow long url using web api?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.307674 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO