Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php-缺少特定索引处的Post变量值部分_Php_Json_Codeigniter_Post - Fatal编程技术网

Php-缺少特定索引处的Post变量值部分

Php-缺少特定索引处的Post变量值部分,php,json,codeigniter,post,Php,Json,Codeigniter,Post,我正在使用一个长的字符串化JSON向我的应用程序发出POST请求,如下所示: /////POST PARAMETER VALUE {"objects":[{"type":"path","originX":"center","originY":"center","left":118.63,"top":252.5,"width":41,"height":139,"fill":null,"overlayFill":null,"stroke":{"source":"function anonymous

我正在使用一个长的字符串化JSON向我的应用程序发出POST请求,如下所示:

/////POST PARAMETER VALUE

{"objects":[{"type":"path","originX":"center","originY":"center","left":118.63,"top":252.5,"width":41,"height":139,"fill":null,"overlayFill":null,"stroke":{"source":"function anonymous() {var patternCanvas = fabric.document.createElement('canvas');patternCanvas.width = patternCanvas.height = 10;var ctx = patternCanvas.getContext('2d');ctx.stroke`Style = quotesquare005E7Aquote;ctx.lineWidth` = 5;ctx.beginPath();ctx.moveTo(5, 0);ctx.lineTo(5, 10);ctx.closePath();ctx.stroke(); return patternCanvas;}","repeat":"repeat","offsetX":0,"offsetY":0},"strokeWidth":15,"strokeDashArray":null,"strokeLineCap":"round","strokeLineJoin":"round","strokeMiterLimit":10,"scaleX":1,"scaleY":1,"angle":0,"flipX":false,"flipY":false,"opacity":1,"selectable":true,"hasControls":true,"hasBorders":true,"hasRotatingPoint":true,"transparentCorners":true,"perPixelTargetFind":false,"shadow":null,"visible":true,"clipTo":null,"path":[["M",40.5,0],["Q",40.5,0,41,0],["Q",41.5,0,41.25,2],["Q",41,4,38,16.5],["Q",35,29,29.5,42],["Q",24,55,21,65],["Q",18,75,15.5,83.5],["Q",13,92,9.5,101.5],["Q",6,111,4.5,118],["Q",3,125,2,128],["Q",1,131,0.5,134],["Q",0,137,0,138],["L",0,139]],"pathOffset":{"x":0,"y":0}}],"background":""}


////// END
每次我做这个请求时,值都会丢失。在服务器中,我突出显示的部分丢失。我意识到这是字符串的一个特定索引范围。当我以这种json字符串化格式给出另一个数据时,它会再次释放该索引范围中的部分。我确信我发送的是完整的值,因为我在请求头上检查了它

问题不在于我的代码,因为我用POSTMAN应用程序测试了它,结果是一样的

任何人都可以帮助解决这一不确定的局面。此值中是否有导致某些转义的内容。我用的是Codeigniter


谢谢

如果您已经确定了索引,您能说出索引是什么吗?您的web服务器是否设置为仅从帖子中获取该数量的字符?这就像跳过索引347-370之间的值一样。这与此无关,因为当我给出另一个数据时,它不会失去任何价值