Forum Moderators: DixonJones

Message Too Old, No Replies

302 redirects appear as Status 200 in weblog

         

doughayman

12:40 am on May 11, 2008 (gmt 0)

10+ Year Member



I was reviewing my weblogs tonight, and see an anomoly which I cannot explain, and want to know if anyone has a reasonable explanation for this.

Here's the scenario:

On some of my webpages, I have links, that when clicked, execute a local CGI program (let's call it CLICK.EXE". This CGI program provides a redirect (I force it to a 302 in my code), and displays a new browser window with the targeted page. The page that is displayed is totally controlled by my CGI logic - it indexes into a local database table, and based on the look-up into this table, determines what pages should be displayed in the new browser window.
My CGI logic increases a counter for the effected lookup record, so I can keep track of how many clicks for a particular link occurred.

What I have noticed of late, is that a lot of these "clicks" are now displaying as webserver status 200 (instead of "302"), and my counters are not incrementing accordingly in my database. The logic in my CGI program is simple and clean. It always returns a "302".

I thought that perhaps pop-up blockers were potentially causing this phenomenon, but I have tested that scenario locally, and it is not the case.

Does anyone have a reasonable explanation for this behavior ?

Thanks in advance !

Doug

jdMorgan

4:44 am on May 11, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What status response code do you see if you request these pages yourself, using something like the "Live HTTP Headers" add-on for Firefox/Mozilla browsers?

Jim

doughayman

10:11 am on May 11, 2008 (gmt 0)

10+ Year Member



jdMorgan (Jim),

I still see "302" on my end with this Firefox add-on installed, from my end.

Additionally, I have analyzed my web logs over the last 3 years, and it seems that the occurrences of this "200" phenonmenon is more prevalent than it was 3 years ago, although it did occur back then as well.

I am baffled !

Doug