I am working on a web-api and I set the web configuration file to accept 6144 as the maximum URL length as shown below
<system.web> <compilation debug="true" targetFramework="4.5" /> <httpRuntime maxUrlLength="6144" relaxedUrlToFileSystemMapping="true" targetFramework="4.5"/>
When I call api with 299 characters, everything works fine, but with more than 299 characters it gives an invalid request - invalid URL
sample url:
http://localhost:56835/api/multibuys/10270001C1001034900|10358419P4001027620|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|
source share