Article View: borland.public.cppbuilder.internet.web
Article #902Re: Getting Reffering Url
From: Hans Galema
Date: Wed, 30 Nov 2005 16:17
Date: Wed, 30 Nov 2005 16:17
19 lines
1513 bytes
1513 bytes
Phil wrote:
> AnsiString wherefrom = Request->Referer;
>
> But this too is an empty string.
If Indy does not implement that you can query the environment variable
yourself.
What I use in a cgi.exe is:
if ( getenv ( "HTTP_REFERER" ) )
printf ( "HTTP_REFERER: %s<br>\n", getenv ( "HTTP_REFERER" ) );
Of course you could sprintf that to a buffer or use AnsiString().printf().
Please report if this does the job.
Hans.
Technical Details
Message-ID:
<438dd0cb@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<438aa43b$1@newsgroups.borland.com> <438ab2db$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,e5553aefb2304786 X-Google-Attributes: gidfeeec,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Wed, 30 Nov 2005 17:17:14 +0100 From: Hans Galema <notused@notused.nl> User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.web Subject: Re: Getting Reffering Url References: <438aa43b$1@newsgroups.borland.com> <438ab2db$1@newsgroups.borland.com> In-Reply-To: <438ab2db$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 145.98.201.248 Message-ID: <438dd0cb@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1133367499 145.98.201.248 (30 Nov 2005 08:18:19 -0700) Lines: 19 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news-out.newsfeeds.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail