> I have a cakephp application setup to handle REST requests, I have
> also got a salesforce app that posts requests to cakephp so updates in
> salesforce are copied over to my main application.
>
> This all works fine if I use the standard request from saleforce, but
> there is an option to compress the request it sends out and I don't
> know how to handle the compression in cake.
>
> From the salesforce HttpRequest class definition
> "setCompressed : If true, the data in the body is delivered to the
> endpoint in the gzip compressed format. If false, no compression
> format is used."
>
> So I can add this to my callout code in salesforce
> request.setCompressed( true );
>
> My question is, what do I do in cakephp to handle the compressed body?
>
> I have apache setup to use gzip to compress the pages, js and css it
> serves, so I guess I need to do something there. Is that correct, or
> do I need to do something in PHP to get the compressed content to
> decompress into (I assume) the $_POST variable?
I'm not familiar with Salesforce but I would think the compressed
request would be no different than any other, and that Apache would
handle the decompression.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment