[SOLVED] IE Problems in Localhost

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

[SOLVED] IE Problems in Localhost

Post by Ambush Commander »

Of course, I'd ditch Internet Explorer for Firefox anyday. But alas, any sane web-developer must test for all browsers and make sure things render correctly. So much to my display, when I fired up Internet Explorer one day, everything broke on Localhost. It's kinda hard to explain, but it involves external objects.

Certain imported things like pictures and stylesheets simply are not being imported in localhost. For instance, I'll have:

index.php loading:
*style.css (works)
*dynamic/thumbnails/trishabakshi/bridges.jpg (doesn't work)
*new.gif (doesn't work)
*logo.gif (works)

or

s.php loading:
*story.css (doesn't work)
*authordata/trishabakshi/one/bridges.jpg (works)
*logo.gif (works)
*Google Ad (works)
*book/captcha.php?sid=PHPSESSID&rand=0.91084200 1116638373 (works)

I have no clue what's going on, and I have no clue whether or not there's a pattern, and I have no clue how to fix this. As I said earlier, everything works perfectly on Firefox, and when you upload it to a webserver, everything works in IE too. But not in localhost. Has anyone ever run into this problem before?
Last edited by Ambush Commander on Sat May 21, 2005 5:26 pm, edited 1 time in total.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I've taken a longer look and this might be a problem with Apache too (stupid me!) But I don't know what. Here is the access log for two requests from IE:

Code: Select all

127.0.0.1 - - ї20/May/2005:21:35:04 -0400] &quote;GET / HTTP/1.0&quote; 200 146422
127.0.0.1 - - ї20/May/2005:21:35:05 -0400] &quote;GET /index/img/menubar.jpg HTTP/1.0&quote; 206 2256
127.0.0.1 - - ї20/May/2005:21:35:05 -0400] &quote;GET /index/img/megatokyo_thumb.jpg HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:35:05 -0400] &quote;GET /index/img/logo.jpg HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:35:05 -0400] &quote;GET /index/img/background.jpg HTTP/1.0&quote; 206 2158
127.0.0.1 - - ї20/May/2005:21:35:39 -0400] &quote;GET /index/style.css HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:35:38 -0400] &quote;GET / HTTP/1.0&quote; 200 146422
127.0.0.1 - - ї20/May/2005:21:35:39 -0400] &quote;GET /index/img/megatokyo_thumb.jpg HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:35:39 -0400] &quote;GET /index/img/menubar.jpg HTTP/1.0&quote; 206 2256
127.0.0.1 - - ї20/May/2005:21:35:39 -0400] &quote;GET /index/img/logo.jpg HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:35:39 -0400] &quote;GET /index/img/background.jpg HTTP/1.0&quote; 200 2158
127.0.0.1 - - ї20/May/2005:21:39:50 -0400] &quote;GET / HTTP/1.0&quote; 200 146422
127.0.0.1 - - ї20/May/2005:21:39:50 -0400] &quote;GET /index/style.css HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:39:51 -0400] &quote;GET /index/img/megatokyo_thumb.jpg HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:39:51 -0400] &quote;GET /index/img/logo.jpg HTTP/1.0&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:39:50 -0400] &quote;GET /index/img/background.jpg HTTP/1.0&quote; 206 2158
127.0.0.1 - - ї20/May/2005:21:39:51 -0400] &quote;GET /index/img/menubar.jpg HTTP/1.0&quote; 206 2256
What one should note is that the final field, the filesize, is marked as "-" when IE recieves the file. ex) background.jpg reported the filesize, so IE didn't recieve it; but megatokyo_thumb.jpg reports a "-", and it was recieved. This, however, doesn't apply to the css page, but note how the style.css calls are all jumbled around. Is IE prefetching content? Hmph.

According to http://httpd.apache.org/docs-2.0/logs.html on access logs, Apache claims that "-" is output when there was no content returned to the client. Now ain't that funny?

Firefox, of course, handles it perfectly, and in HTTP 1.1 to boot:

Code: Select all

127.0.0.1 - - ї20/May/2005:21:42:43 -0400] &quote;GET / HTTP/1.1&quote; 200 146215
127.0.0.1 - - ї20/May/2005:21:42:44 -0400] &quote;GET /index/style.css HTTP/1.1&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:42:44 -0400] &quote;GET /index/img/menubar.jpg HTTP/1.1&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:42:44 -0400] &quote;GET /index/img/background.jpg HTTP/1.1&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:42:45 -0400] &quote;GET /index/img/logo.jpg HTTP/1.1&quote; 304 -
127.0.0.1 - - ї20/May/2005:21:42:45 -0400] &quote;GET /index/img/megatokyo_thumb.jpg HTTP/1.1&quote; 304 -
But the last field is still "-". Did I misinterpret this:
2326 (%b)
The last entry indicates the size of the object returned to the client, not including the response headers. If no content was returned to the client, this value will be "-". To log "0" for no content, use %B instead.
Of course, this could possibly not be the problem at all. Maybe it's the error codes? Some of the files are throwing 206, or Partial Content warnings. That's not very homologous either.

Any other suggestions?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

Nope, it wasn't apache. It was some stupid third-party browser extension. Meh.
Post Reply