Tuesday 5 August 2008

HTTP Server Variable Gotcha

If you need to get the URL of the referring page that has submitted a form you need to look at the server variable "HTTP-REFERER" not "HTTP-REFERRER". It appears that a spelling mistake early on in the web has stuck.

I have been programming a web page using ASP which submitted a form, processed the details and redirected to a confirmation page. However, the form could be submitted from two different sites (an intranet site and a corresponding interent site) but both sites had to submit to the same site (it was updating an MS Access database). So I was looking at the referring page to determine which site to redirect back to. Doing some research had suggested getting the value of Request.ServerVariables("HTTP-REFERRER"), however after some time trying to figure out why it wasn't working I found out that it should be Request.ServerVariables("HTTP-REFERER").

2 comments:

  1. Here at Pepper's Parties, we delight ourselves on carrying greatest quality|the highest quality|the absolute best quality} of intercourse toys and different novelty gadgets. But there dildoes are quantity of} manufacturers we simply cannot carry, for one cause or one other. If you're on the lookout for a intercourse toy or novelty product that we don't carry, don't worry! The authorized standing of on-line adult toy shops varies relying on country and location.

    ReplyDelete
  2. The major monetary beneficiaries are the net gambling companies themselves, the foreign nations in which they're situated, and the businesses that process their monetary transactions. In 1997 and 1998 a California lady casino.edu.kg named Cynthia Haines charged more than $70,000 in on-line gambling losses to her bank cards. Providian National Bank, which issued the cards, sued her for nonpayment. In June 1998 Haines countersued the bank, claiming that it had engaged in unfair business practices by making earnings from illegal gambling activities. Haines's attorneys argued that her debt was void outcome of|as a outcome of} it arose from an illegal contract. Providian finally settled out of court, forgave her debt, and paid $225,000 of her attorney's fees.

    ReplyDelete