shinypb / openkeyval

OpenKeyval.org is a completely open key-value data store, exposed as a drop-dead simple web service. The goal is to make this a very easy way to persist data in web applications.
http://openkeyval.org
Other
137 stars 35 forks source link

512 characters limitation when setting a value? #14

Open cskeppstedt opened 13 years ago

cskeppstedt commented 13 years ago

Hi,

there seems to be a limitation of 512 characters for setting a value (via JSONP).

I am making a request to http://api.openkeyval.org/store/?somekey=somevalue&jsonp_callback=...

When strlen(somevalue)==512, it works fine, but when strlen(somevalue)>=513, the new value isn't stored. I still get status 200 back, the keys-array however is empty.

Have a look over at php.net, looks like some specific patch of PHP defaults to only allow 512 characters in $_GET-variables: http://www.php.net/manual/en/reserved.variables.get.php#101469

Sincerely, Christoffer

yemble commented 13 years ago

Bump. Was expecting 64KB capacity, received bobcat.

ErikAndreas commented 12 years ago

Hi

any chance of setting a longer limit, as referenced by @cskeppstedt: ?

"To add support for long parameters with suhosin, add suhosin.get.max_value_length = in php.ini"

Or even better, instead of relying on get with jsonp, allow for CORS/Access-Control-Allow-Origin: * ? That would(?) allow for posting up to the 64kB limit from html/js too.

It's an awesome service and it's too bad that the 512 chars limitation is killing non server side usage

cheers, Andreas