88013

Case Insensitive URLs for wso2 Request URL

Question:

I created an api with context MyStudents in wso2 publisher. So the Request URL is MyStudents/v1. When I publish this api, I have resource /Students/{name}. In the wso2 store, when I try out the feature, the URL is <a href="http://MyServer.com/MyStudents/v1/Students/foo" rel="nofollow">http://MyServer.com/MyStudents/v1/Students/foo</a>. If I keep the case as is in the URL, then my api works. If I use any other tool to call and change the case in url to <a href="http://MyServerName.com/mystudents/students/foo" rel="nofollow">http://MyServerName.com/mystudents/students/foo</a>, then I get a 202 error. Can you please tell me how to make my urls case insensitive in wso2? Thanks.

Answer1:

According to HTTP/1.1 specification, RFC2621 section 3.2.3 (<a href="http://tools.ietf.org/html/rfc2616#section-3.2.3" rel="nofollow">http://tools.ietf.org/html/rfc2616#section-3.2.3</a>) the path in HTTP URLs is case-sensitive. So from my point of view the WSO2 API Manager is handling the API URL correctly.

Recommend

  • DWS CreateFolder() files are getting created on shareppoint “Style Library”
  • Programmatically setting up a vpn on Android
  • Can't access SVC files in WCF services after deployment
  • Get disconnected users and logOff them
  • Httpd.conf multiple VirtualHost sections (was: Mono ASP.NET MVC AutoHosting issues)
  • Warning: mail(): Failed to Receive in
  • Masterpage CSS link can't resolve ~
  • Whats wrong with this C shell script?
  • Find symbol dependencies in source code [closed]
  • How to run bash commands like “npm install” on complie
  • UML diagram generator in Visual Studio 2010
  • using html data-attributes as css-variable (i.e. text-shadow)
  • Click on button in another program - FindWindow, C#
  • VSCode change debug shell to bash on windows
  • How to retrieve information from antrun back to maven?
  • Does Apple allow the usage of sysctl.h within iOS applications?
  • Abort upload large uploads after reading headers
  • Moving mysql files across servers
  • Meteor helpers not available in Angular template
  • java.lang.NoClassDefFoundError: com.parse.Parse$Configuration$Builder on below Lollipop versions
  • What is Eclipse's Declaration View used for?
  • How to recover from a Spring Social ExpiredAuthorizationException
  • ILMerge & Keep Assembly Name
  • How to make Safari send if-modified-since header?
  • Build own AppleScript numerical error handling
  • Large data - storage and query
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • WOWZA + RTMP + HTML5 Playback?
  • How to pass list parameters for each object using Spring MVC?
  • Circular dependency while pushing http interceptor
  • bootstrap to use multiple ng-app
  • How to get icons for entities from eclipse?
  • AngularJs get employee from factory
  • How to set the response of a form post action to a iframe source?
  • how does django model after text[] in postgresql [duplicate]
  • Setting background image for body element in xhtml (for different monitors and resolutions)
  • Change div Background jquery
  • Turn off referential integrity in Derby? is it possible?
  • JaxB to read class hierarchy
  • java string with new operator and a literal