The Slim Framework support forum has moved to http://discourse.slimframework.com. This Tender forum is no longer maintained or monitored.

Using :someting is causing slim to throw error

kishore's Avatar

kishore

09 Apr, 2012 06:47 PM

This is not a straight use, of course. But I am trying to hack and see what happens.

When I try to request /:test, then it shows the following error message. I want to be able to handle this scenario as well.
Also, is it coming from Apache or Slim?

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

403 Forbidden

Forbidden

You don't have permission to access /:test on this server.

  1. 1 Posted by Kishore on 10 Apr, 2012 04:21 AM

    Kishore's Avatar

    Josh: Any idea?

  2. Support Staff 2 Posted by Josh Lockhart on 10 Apr, 2012 12:39 PM

    Josh Lockhart's Avatar

    You'll need to URL-encode the colon character in your URL. However, if you are getting a forbidden error, that indicates a web server configuration issue and not a Slim issue. Make sure your virtual host is configured properly and its directory/files have adequate permissions.

  3. 3 Posted by Kishore on 10 Apr, 2012 04:06 PM

    Kishore's Avatar

    Thanks, Josh.

  4. 4 Posted by Kishore on 10 Apr, 2012 04:08 PM

    Kishore's Avatar

    Thanks, Josh. Not sure what configuration would cause this. I will check this out.
    I was just trying hack it and see how the application responds, not that I want to pass variables like that :-) kb

  5. Andrew Smith closed this discussion on 01 Aug, 2012 12:53 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac