Welcome to WebmasterWorld Guest from

Forum Moderators: incrediBILL

Message Too Old, No Replies

strange http_accept value

why would I get this result.

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

Junior Member

10+ Year Member

joined:May 13, 2004
votes: 0


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?



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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 25, 2002
votes: 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

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

Junior Member

10+ Year Member

joined:May 13, 2004
votes: 0


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.




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

Inactive Member
Account Expired


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?


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members