title: Web Server URL - Detecting PathInfo Hierarchy
body: <p>I have an HTTP Web Broker Server which needs to handle requests such as...</p>
  
  <pre><code>http://myserver.com/versions/2013.6.0.0/ML/Files/SomeFile.exe
  </code></pre>
  
  <p>The server its self just for reference is hosting information and specific individual files for automatic software updates (where many individual updatable files are involved).</p>
  
  <p>So I create a request handler in the Web Module for this, but the path info of this request (<code>Request.PathInfo</code>) is...</p>
  
  <pre><code>/versions/2013.6.0.0/ML/Files/SomeFile.exe
  </code></pre>
  
  <p>...but it needs to detect just the first part...</p>
  
  <pre><code>/versions
  </code></pre>
  
  <p>Once it detects this, then it needs to handle the following version number...</p>
  
  <pre><code>/2013.6.0.0
  </code></pre>
  
  <p>...in which case the web server knows the client's requesting data specific to that version. The next part is the application Edition...</p>
  
  <pre><code>/ML
  </code></pre>
  
  <p>Then I specify that I'm looking for specific files related to this version/edition combo...</p>
  
  <pre><code>/Files
  </code></pre>
  
  <p>...and finally the actual file...</p>
  
  <pre><code>/SomeFile.exe
  </code></pre>
  
  <p>This URL does not represent any actual directory on the web server - the actual location of <code>SomeFile.exe</code> could be entirely different (another story of how it detects where to find those files).</p>
  
  <p>The question is, How should I detect this hierarchy of Path Info and handle it accordingly using the request handler actions (TCollection) available in the Web Module? Because the built-in request handlers assume that there'll only be one level, but this server could have virtually endless levels. </p>