I'm trying to create an endpoint out of a base64 string, but only end up with a 403 forbidden error when used. My first though is that there is a limit on how long a url can be?
EDIT
It seems after some exploration the MAX the string can be is 255 characters, after that it blows up??
Here is my Route setup
....
Route::get('/{glob}', 'GrantController@Init');
....
Here is my GrantController
Class GrantController Extends BaseController
{
protected $str = null,
$obj = null;
/**
* Run the trap..
*
* @param $data
* @return mixed
*/
public function init($data)
{
return \View::make('debug.dump', [
'data' => $data
]);
}
}
And /Views/debug/dump.php
echo $data . '<br />';
echo 'Length: ' . strlen($data); // 255 MAX