homepage Welcome to WebmasterWorld Guest from 54.204.127.191
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
strange http_accept value
why would I get this result.
adwhite




msg:606572
 5:07 pm on Jan 31, 2005 (gmt 0)

Hi,

I'm trying to control a display based on the values in http_accept. But when I'm running with IE6 and display the values within http_accept I only get */*

When I run it with Firefox I get a normal list of values.

Can anyone suggest what's happening?

Cheers

Andy

 

Dreamquick




msg:606573
 5:12 pm on Jan 31, 2005 (gmt 0)

IE serves the accept header in it's entirity with the initial request for a page but if you refresh the page the accept header is then delivered as */*.

You can test this by opening a showvars type page, then refreshing it.

- Tony

adwhite




msg:606574
 5:18 pm on Jan 31, 2005 (gmt 0)

Tony,

Thanks for your quick response, I just tested your answer and you're right it does.
What a nightmare, if someone reloads the page the check will fail. But now I know what it is happening I can store it as a session variable.

Cheers

Andy

jaltuve




msg:606575
 8:45 pm on Mar 8, 2005 (gmt 0)

It's very strange, I was having the exact same problem, because the requested file was a perl script I was able to log each attempt. And the results were very interesting....

Firefox shows the correct HTTP_ACCEPT value because it was making a SINGLE request on my perl script. Now, for a reason that still I don't understand IE is making TWO requests on the same file, first logged requests shows a full HTTP_ACCEPT field with values, second logged requests shows a */*.

Why is IE making two requests on the same file?

I tried doing GET's directly from a Unix commmand prompt, then with Firebox and they all behave correctly! only IE hits the script twice for no reason! is this a IE bug?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved