I should have expected something like this: could it be zip file corruption effecting IE but not Firefox?

I was able to get Flash in IE to retrieve text files from YouTube by setting a breakpoint with fiddler for when it requests "http://www.youtube.com/watch?v=3_SSuO1gUUE", then editing the request headers to remove the header "Accept-Encoding: gzip, deflate", then resuming the request. It worked perfectly then! So there's something wrong with downloading compressed files to Flash via IE... I wish there was a way to turn compression off but setRequestHeaders("Accept-Encoding", "")  is on the fritz.

Oh cool, this narrows it down: Fiddler has a rule called "Remove all encodings" that (spit take) removes all encodings, specifically gzip! And when I turn that rule on, the problem goes away and Flash works perfectly inside of IE.

I wish I could figure out what to file a bug against... It looks like I'm going to have to write a proxy.

http://jira.opensymphony.com/browse/CACHE-49

Comment by Michael Greer [28/Feb/05 12:55 AM]
I hope this is configurable, since I have run into many issues with a bug in some versions of IE's gzip compression. It is fixed, but there are folks out there with it. What happens is that while it decompresses web pages fine, it _fails_ to decompress content for plugins. If you are serving data to a Flash app, the app crashes or hangs.
Many sites with dynamic Flash disable gzip completely, since it is impossible to detect this specific version from the headers.
Anyway, nice work, and please make it optional.
This guy is having exactly the same problem as I am, trying to do the same thing, a Flash based YouTube player:

http://mannu.livejournal.com/326881.html?thread=1911777

From: (Anonymous)
Date: July 14th, 2006 - 11:44 pm
   
(Link)
IE on Windows Error
Manish,

When I run fTube in IE on Windows, I get the following error:

Error #2044: Unhandled ioError:. text=Error #2032: Stream Error. URL: http://www.youtube.com/watch?v=Lk7_4aZY34A
at YouTubeFLVPlayer/playVideo()
at fTube/::play()
at fTube/___Image2_click()

I have written an application that does the same thing in both Flex and Flash 8 and am also having the same problems. Is anyone else seeing this? I am wondering if it may be my internal network or browser settings.
(Reply to this) (Thread)
From: (Anonymous)
Date: July 17th, 2006 - 06:26 pm
   
(Link)
Re: IE on Windows Error
Hi Manish,

I believe this error exists, because YouTube is using gzip compression when serving web pages. It appears that Flash in IE on Windows does not work when this is happening. Below is some code (ActionScript 2.0) that I feel should fix it, but does not... Any thoughts?

Curtis
[EMAIL PROTECTED]

var headers:Array = new Array("Accept-Encoding", "deflate");
var youTubeResult_lv = new LoadVars();
var youTube_lv = new LoadVars();
var video_id = "mWKHFZOTGXY";

createTextField("output_txt", 100, 0, 0, 500, 50);
output_txt.multiline = true;
output_txt.wordWrap = true;

youTube_lv.addRequestHeader(headers);

youTubeResult_lv.obj = this;
youTubeResult_lv. {
this.obj.handleYouTubeResult(src);
}

function handleYouTubeResult(src:String):Void {
var beginSearch:Number = src.indexOf("new SWFObject", 0);
var start:Number = src.indexOf("&t=", beginSearch);
if(src != undefined) {
if(start > 0) {
var end:Number = src.indexOf("\",", start + 1);
var t:String = src.substr(start + 3, (end - start - 3));
var url:String = "http://www.youtube.com/get_video.php?video_id=" + video_id + "&t=" + t + "&.flv";
output_txt.text = url;
} else {
output_txt.text = "could not locate \"t\" value";
}
} else {
output_txt.text = "page source was not returned";
}
}


youTube_lv.v = video_id;
youTube_lv.sendAndLoad("http://www.youtube.com/watch", youTubeResult_lv, "POST");
(Reply to this) (Parent) (Thread)
From: (Anonymous)
Date: September 22nd, 2006 - 02:32 am
   
(Link)
Re: IE on Windows Error
I think you are right, curtis, it's the IE/Flash/gzip bug: http://blog.jasonnussbaum.com/?p=155 . The problem is that IE overwrites the Accept-Encoding header (with "gzip, deflate") after we add it to the request from flash. Seems currently there is no way around this from flash, either a js or a php-proxy workaround must be used.

max
[EMAIL PROTECTED]
(Reply to this) (Parent)


http://mail-archives.apache.org/mod_mbox/httpd-users/200412.mbox/[EMAIL PROTECTED]

From      "Mark Richards" <[EMAIL PROTECTED]>
Subject     Re: [EMAIL PROTECTED] Problem with mod_deflate
Date     Wed, 15 Dec 2004 17:28:54 GMT

Shaun,

We had similar problems to you. The zip corruption only occurs with MS
IE, and is a result of how IE handles application/x-zip-compressed. Our
tests showed that non-MS IE browsers handled compressed zip files
correctly.

We attempted to use a deflate exclusion based on Content Type:

   SetEnvIfNoCase Content-Type application/x-zip-compressed no-gzip
   dont-vary

However, this did not work due to a "weakness in the filtering model in
2.0" (Nick Kew).

Our solution: we changed our app to change the mime type of zip files to
something other than application/x-zip-compressed - this supported POSTs
- and also included the following config for explicit GETs:

   SetOutputFilter DEFLATE
   SetEnvIfNoCase Request_URI "\.(?:zip|pdf)$" no-gzip dont-vary

We found certain limitations with AddOutputFilterByType, so doing a
blanket output filter, with certain specified exclusions, served our
purposes better. A better solution would be to have exclusion based on
mime type of the server response, and hopefully that will arrive in 2.1.

Our observed limitations of AddOutputFilterByType DEFLATE:
 
    - we could only have one AddOutputFilterByType directive, otherwise
    only the last AddOutputFilterByType directive would operate.

    - wildcards were ignored e.g. AddOutputFilterByType application/ms*
    We had to specify all types explicitly, and with a single
    AddOutputFilterByType directive.

    - did not appear to work on POSTs, only on GETs

Regards,
Mark Richards.

-----Original Message-----
From: Willingham, Shaun [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 13, 2004 8:49 PM
To: [email protected]
Subject: [EMAIL PROTECTED] Problem with mod_deflate

Hi all,

I have an issue with mod_deflate, running on Apache 2.0.52.

Until today, I'd been running 2.0.48 with php/mysql no problem. One of
the
users on my discussion forum pointed out that zip files were corrupted,
when they attempted to download from my server.

I isolated the problem to mod_deflate. Apparently compressed binaries
don't like being compressed a second time. Alright, makes sense - I
thought I'd just add a filter to my httpd.conf to not compress .zip,
.exe,
.pdf, etc. This didn't work.

I upgraded to Apache 2.0.52 and updated the zlib lib to 1.2.1. Now when
I
run apache while loading mod_deflate, I get this error:

Syntax error on line 266 of /usr/local/apache/conf/httpd.conf:
Cannot load /usr/local/apache/modules/mod_deflate.so into server:
/usr/local/apache/modules/mod_deflate.so: undefined symbol: deflate

I haven't changed anything. It was working fine before. I figured apache
couldn't find zlib, so I specified where it was at compile time.

Here's the vital info...

My apache configuration directive:

./configure --prefix=/usr/local/apache --enable-module=so
--enable-modules=all
--enable-mods-shared=all --enable-deflate --with-zlib=/usr/local/zlib

Here's part of my httpd.conf where mod_deflate is loaded: (I won't post
the
whole thing..)

LoadModule deflate_module      modules/mod_deflate.so

--

Apache works fine if I leave the mod_deflate.so commented out, but I
need this
module!

Has anyone else had a similar/identical problem? What did you do to fix
it?

I tried downgrading the zlib library, but same results.

S

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to