Expand my Community achievements bar.

GZIP-Encoded HTTP Response in adobe air and flex data service

Avatar

Level 1

Hello,

I am using data centric service in flash builder 4 (beta 2) to call betfair web service. The application is working well.

But betfair told me to set the encoding to gzip when requesting the web service. I had used httpHeaders to add new header.

         var bfHeader:Object=new Object();
         bfHeader["Accept-Encoding"]= "gzip";
         _serviceControl.httpHeaders = bfHeader;

Now when I run the application, network monitor shows both the request and response is encoded in gzip format, network monitor itself uncompressed the content and showed it. But I don't know how to uncompress the content. As the content is compressed, I could not call any data service.

I have tried to use the convertResultHandler. But actually don't know how to use it correctly.


Please help me. Its important

Thanks in advance.

1 Reply

Avatar

Former Community Member

Hello bahar08

Its been a long while since you posted your topic but I've just found it after being getting stuck with this exact problem. There is a gzip decompressor my Danny Patterson that might help. I've added the header in as well but the responces don't seem to be coming down in a compressed format.

It would be cool to chat with you about this.