Click here to Skip to main content
15,889,725 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am working on a web-api and i have set the web config file to accept 6144 as the max length of the url as bellow
HTML
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime maxUrlLength="6144" relaxedUrlToFileSystemMapping="true"   targetFramework="4.5"/>



but when i call a api with character 299 is working fine but it is not working more than 299 charcater and through a Bad Request - Invalid URL appreciate all your help

eg url

http://localhost:56835/api/multibuys/10270001C1001034900|10358419P4001027620|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|10781772P4805004950|[^]
Posted
Comments
ZurdoDev 1-Aug-13 8:08am    
Curious, but why 6144? Also what version of IE is it? IE does limit url lengths.
rushdy20 1-Aug-13 8:12am    
rushdy20 - 38 secs ago
firefox what it he max size i want to to set 4096 as i have passing a parameteraise query to API
ZurdoDev 1-Aug-13 8:14am    
I think firefox is way bigger. IE was the only one so small but I would google to make sure.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900