Welcome Guest, Not a member yet? Register   Sign In
Segment length in uri problem
#1

Hi
I've defined a new route as

Code:
$routes->get('/opendata/(:segment)', 'Tools::openData/$1');

This Tools/openData controller/fuction receives 1 parameter, which is a base64 encoded string of about (average) 500 characters

I've tried with
Code:
https://myApp.com/opendata/dGhpc2lzanVzdGF0ZXN0dGhpc2lzanVzdGF0ZXN0dGhpc2lzanVzdGF0ZXN0dGhpc2lzanVzdGF0ZXN0dGhpc2lzanVzdGF0ZXN0dGhpc2lzanVzdGF0ZXN0
120 characters approx and everything works fine.

Now, I've tried with a real world example which is about 500 char. long and I get a 404 error

1. Any workaround or config setting to allow this ?

2. Any function that could shorten/compress this string (without database, cookies, etc.) univocally so it can work without modifying anything else?

Thanks a lot
Reply


Messages In This Thread
Segment length in uri problem - by kabeza - 09-07-2023, 08:40 AM
RE: Segment length in uri problem - by ozornick - 09-07-2023, 08:49 AM
RE: Segment length in uri problem - by kabeza - 09-07-2023, 09:12 AM
RE: Segment length in uri problem - by kenjis - 09-07-2023, 02:53 PM
RE: Segment length in uri problem - by kabeza - 09-08-2023, 04:44 AM
RE: Segment length in uri problem - by InsiteFX - 09-07-2023, 10:43 PM
RE: Segment length in uri problem - by InsiteFX - 09-08-2023, 09:07 PM
RE: Segment length in uri problem - by kabeza - 09-11-2023, 03:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB