views:

566

answers:

3

Recently an application I wrote started not working on Internet Explorer. There has been no change to the underlying (ruby on rails) code.

In IE 6 or IE 7, I can make one request (HTTP Post) to the app, but when I try to make a 2nd request, I get an "Operation Aborted" message. Everything works fine in firefox. The HTTP Request and Response headers are exactly the same. The response header for the correct and incorrect results both have the same content-length (about 104k). The correct response has the full content, but the incorrect response has the content cut off after bout 40k. (So about 65k of the response is just gone.)

The even trickier thing is that if I use the IP address instead of the domain name to make the request, everything works great.

This is an apache2 web server.

Any ideas?

+1  A: 
splattne
I was using something similar called Http Analyzer which is how i figured out that the response header is correct but that the content wasn't.
Kyle Boon
+4  A: 

I found this Microsoft support article:

BUG: Error message when you visit a Web page or interact with a Web application in Internet Explorer: "Operation aborted"


SYMPTOMS

When you visit a Web page or you interact with a Web application, you receive an Internet Explorer dialog box that contains the following error message: Internet Explorer cannot open the Internet site http://.com. Operation aborted. Back to the top

CAUSE

This problem occurs because a child container HTML element contains script code that tries to modify the parent container element of the child container. The script code tries to modify the parent container element by using either the innerHTML method or the appendChild method. Back to the top

WORKAROUND

To work around this problem, write script blocks that only modify closed containers or that only modify the script's immediate container element. To do this, you can use a placeholder to close the target container, or you can move the script block into the container that you want to modify.

splattne
Thought I should add: this issue has cropped up with ad services and other off-site Javascript (Google Maps, SiteMeter etc) in the past. It's not just your own codebase you need to worry about in all cases.
Steven Richards