XMLHttpRequest and ob_start("ob_gzhandler");

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

XMLHttpRequest and ob_start("ob_gzhandler");

Post 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
Robert Plank
Forum Contributor
Posts: 110
Joined: Sun Dec 26, 2004 9:04 pm
Contact:

Post by Robert Plank »

If you turn off gzip compression, does it all still work?
kcomer
Forum Contributor
Posts: 108
Joined: Tue Aug 27, 2002 8:50 am

Post by kcomer »

Yes, when I turn off the compression everything is fine.
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.
Post Reply