While sending GET request with Parameters value with special Charachter like Backslash(\),Forwardslash(/) and all using Odata REST API
This is my web.config
<system.web>
<pages validateRequest="false" />
<httpRuntime requestPathInvalidCharacters="" />
</system.web>
<modules runAllManagedModulesForAllRequests="true"></modules>
<handlers>
<remove name="ExtensionlessUrlHandler-Integrated-4.0" />
<remove name="OPTIONSVerbHandler" />
<remove name="TRACEVerbHandler" />
<add name="ExtensionlessUrlHandler-Integrated-4.0" path="*." verb="*" type="System.Web.Handlers.TransferRequestHandler" preCondition="integratedMode,runtimeVersionv4.0" />
</handlers>
<security>
<requestFiltering allowDoubleEscaping="true" />
</security>
There is two key and value UserId='XX\XXXX' and UserName='XXXXXX'.
Passing Parameters Value with backslash(\) than error 404 occurs.
http://localhost/ProjectName/ControllerName(UserId='PC\Test',UserName='anonymous')
c# asp.net-web-api odata odata-rest-api
Try to use encode the special chars, for example:
\ -> %5C
/ -> %2F
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Try to use encode the special chars, for example:
\ -> %5C / -> %2F
I already tried Earlier but this is not working.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Still Facing Same Issue With Backward and forward slash. I'm Using Swagger Documentation for Rest API. I entered record in swagger that time this error is occurred and also with query string.
@Jeegen Please use https://github.com/strongloop/loopback-connector-openapi instead. Let us know if you have the same issue.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.