title: HTTP URL splitting fails
body: <p>I have a server which returns images to a client. Whenever an image is returned, the client requests the next image (with a different url of course). This means that I have to grab the url request and somehow split it up and parse it on, so that my server knows which image is being requested. </p>
  
  <p>I currently have the current setup:</p>
  
  <p>This is where the request is being handled and as you can see, what I'm currently doing is asking specifically about the url where the image is. If the incoming request url is the same, then the image gets sent back. I need some kind of mechanism that will ask for the url of the image, depending on the url of the incoming request. So after returning image 0,0,0.png, the client will ask for 0,0,1.png and so on. </p>
  
  <p>Any hint to how I can do this?</p>
  
  <pre><code> if (p.http_url.Equals("/MapServer/tile/0/0/0"))
          {
              Bitmap bmap = new Bitmap("../MapServer/tile/0,0,0.png");
              MemoryStream memStream = new MemoryStream();
              bmap.Save(memStream, ImageFormat.Png);
              byte[] buffer = memStream.ToArray();
  
              p.outputStream.Write(buffer, 0, buffer.Length);
  </code></pre>
  
  <p>I imagine it should be done with something similar to this but I've got a little stuck.</p>
  
  <pre><code> public void urlSplitter()
      {
          string http_url_split = http_url;
          string[] splitString = http_url_split.Split('/');
          int index = splitString.Length - 1;
  </code></pre>