Rss Feed

Réponse GZipée dans Zend AMF

Contrairement à AMFPHP, Zend AMF n’offre pas la possibilité de compresser en gzip les réponses, ce qui peut être très embêtant dans le cas de requêtes renvoyant un grand volume de données (il peut exister un facteur 100 entre une réponse standard et une réponse compressée).

Cette fonctionnalité peut facilement être ajoutée en utilisant gzcompress ou gzencode.

echo "x1fx8bx08x00x00x00x00x00".gzcompress($zendAmfServer->handle());
Partager :
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay
  • LinkedIn
  • Technorati
  • Twitter

Articles sur le même sujet :

  1. Matsiya a la zend amf attitude
  2. Zend AMF et socket UNIX
  3. Zend Framework 1.7.0 / AMF support (Zend_Amf)

Commentaires

  1. Wade Arnold says:

    Why would you not have apache configured for gzip all http requests?

  2. Alexis says:

    Just because apache is not always configured to gzip http requests on all providers (OVH mutualized servers for example)

    But on a dedicated server, it shoud be the other way ;)

Laisser un commentaire

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word