# HTTP header tronque avec php

**URL:** <https://community.ovhcloud.com/t/http-header-tronque-avec-php/28355>\
**Category:** Domaines et Hébergements\
**Created:** [Août 21, 2020, 8:38 UTC](https://community.ovhcloud.com/t/http-header-tronque-avec-php/28355 "2020-08-21T08:38:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![LoicP16](https://community.ovhcloud.com/letter_avatar/loicp16/32/6_449c533f586939b6e5f246632a46421f.png) [@LoicP16](https://community.ovhcloud.com/u/LoicP16)\
**Post date:** [Août 21, 2020, 8:38 UTC](https://community.ovhcloud.com/t/http-header-tronque-avec-php/28355/1 "2020-08-21T08:38:32Z")

</div>

Bonjour a tous  
je tourne en rond sur mon probleme (aucun soucis en local):  
Je retourne une serialization de plusieurs milliers de char dans le header http dún appel AJAX en php 7.3 et invariablement, la string est tronque lorsque je tourne le code en prod sur OVH…  
(header envoye avec :  
  
$protocol = (isset($\_SERVER['SERVER\_PROTOCOL']) ? $\_SERVER['SERVER\_PROTOCOL'] : 'HTTP/1.0');  
$code=201;  
header($protocol . ' ' . $code . ' ' . $text);  
)  
  
Quelquún a une idee?  
  
L
