Page 1 of 1

XMLHttpRequest and ob_start("ob_gzhandler");

Posted: Fri Jun 23, 2006 10:50 am
by kcomer
I am using XMLHttpRequest to call php pages that have ob_start("ob_gzhandler"); at the biginning of the scripts. I get a response back from the server but it's empty. I'm using FireBug to look at the header info and there is none. I'm at a loss as to why this wont work and I can't find much info about using XMLHttprequest and compression. Anyone have experience with this?

Thanks,

Keith

Posted: Fri Jun 23, 2006 11:03 am
by Robert Plank
If you turn off gzip compression, does it all still work?

Posted: Fri Jun 23, 2006 8:31 pm
by kcomer
Yes, when I turn off the compression everything is fine.

Posted: Fri Jun 23, 2006 9:04 pm
by Weirdan
You may use Accept header on your request to exclude compressed content encoding from the list of codings you expect... according to the php docs ob_gzhandler should respect your choice.