RE: CFLOCATION to external sites - failure

2002-09-30 Thread Cornillon, Matthieu

Hi, all.  I'm afraid that this isn't the problem.  The addresses are indeed
fully qualified.  I have rewritten the CFLOCATION tag several times from
scratch to be sure I have no typos.  I have cut and pasted the exact URL
string from the CFLOCATION url attribute to a browser's address bar (on the
server itself) and have successfully reached the site.

Still a mystery...

Matthieu

-Original Message-
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 11:29 AM
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Ahhh, cheers Jochem. Then the problem is the client resolving the url's.
Well I'd taken it for granted that the url's in the db were all fully
qualified, i.e. including http:// etc as Mike had suggested, but it's
starting to sound like Mike is correct, unless the client machine is having
extraneous networking problems (more unlikely).

Dave

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 16:22
To: CF-Talk
Subject: Re: CFLOCATION to external sites - failure


Dave Wilson wrote:
 I'm not sure exactly how cflocation works. Whether it (as you say) sends
the
 redirect instruction to the client, leaving the dns resolution up to the
 client machine. Or. It is all handled on the server side.

cflocation sends an HTTP 302 Found statuscode to the browser together
with a header with the new location (see RFC 2616 or the list archive
for past discussions). Effectively, it is nothing but:
cfheader statuscode=302
cfheader name=location value=fully qualified URL

Jochem



__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



CFLOCATION to external sites - failure

2002-09-27 Thread Cornillon, Matthieu

Hi.  I have a series of pages, each of which points to an offsite link.
These external sites vary in location and nature.  In order to track usage
of these sites, I am passing users through an exit page.  On this exit page,
I pull the external URL from a database and stick it in a CFLOCATION
statement.

Sometimes this works, and sometimes I get a page could not be found/404
error.  I am sure that this is not to do with the exit page's placement: if
I remove it, I get an entirely different error.  So I am sure that the exit
page is being loaded.

To make things stranger: if I paste the URL (pulled by the exit page)
directly into a browser, it works fine.  Or, if I use CFHEADER instead of
CFLOCATION, it works fine.

Anyone know of any reason why CFLOCATION should fail when pointing offsite?

Thanks,
Matthieu
__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCATION to external sites - failure

2002-09-27 Thread Dave Wilson

Maybe the server running ColdFusion has difficulty in resolving url's.
Possibly due to incorrectly configured DNS.

Check the links are obtainable when browsing direct to them from the server
if you have access to it.

Dave

-Original Message-
From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 14:54
To: CF-Talk
Subject: CFLOCATION to external sites - failure


Hi.  I have a series of pages, each of which points to an offsite link.
These external sites vary in location and nature.  In order to track usage
of these sites, I am passing users through an exit page.  On this exit page,
I pull the external URL from a database and stick it in a CFLOCATION
statement.

Sometimes this works, and sometimes I get a page could not be found/404
error.  I am sure that this is not to do with the exit page's placement: if
I remove it, I get an entirely different error.  So I am sure that the exit
page is being loaded.

To make things stranger: if I paste the URL (pulled by the exit page)
directly into a browser, it works fine.  Or, if I use CFHEADER instead of
CFLOCATION, it works fine.

Anyone know of any reason why CFLOCATION should fail when pointing offsite?

Thanks,
Matthieu

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCATION to external sites - failure

2002-09-27 Thread Turetsky, Seth

Would that really matter, doesn't cflocation just tell the browser to relocate to the 
specified url?

-Original Message-
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 10:37 AM
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Maybe the server running ColdFusion has difficulty in resolving url's.
Possibly due to incorrectly configured DNS.

Check the links are obtainable when browsing direct to them from the server
if you have access to it.

Dave

-Original Message-
From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 14:54
To: CF-Talk
Subject: CFLOCATION to external sites - failure


Hi.  I have a series of pages, each of which points to an offsite link.
These external sites vary in location and nature.  In order to track usage
of these sites, I am passing users through an exit page.  On this exit page,
I pull the external URL from a database and stick it in a CFLOCATION
statement.

Sometimes this works, and sometimes I get a page could not be found/404
error.  I am sure that this is not to do with the exit page's placement: if
I remove it, I get an entirely different error.  So I am sure that the exit
page is being loaded.

To make things stranger: if I paste the URL (pulled by the exit page)
directly into a browser, it works fine.  Or, if I use CFHEADER instead of
CFLOCATION, it works fine.

Anyone know of any reason why CFLOCATION should fail when pointing offsite?

Thanks,
Matthieu


__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCATION to external sites - failure

2002-09-27 Thread Mike Townend

Are you includeing a http:// on the url so the browser knows not to pull
a relative path ?

As I have used code like..

CFLOCATION URL=../foo.htm ADDTOKEN=NO

Plenty of times so that I can keep people out of directories... And if
you arent includeing the http then it could be telling the browser to go
to http://www.yoursite.com//www.newsite.com/   with will 404

HTH



-Original Message-
From: Turetsky, Seth [mailto:[EMAIL PROTECTED]] 
Sent: Friday, September 27, 2002 15:55
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Would that really matter, doesn't cflocation just tell the browser to
relocate to the specified url?

-Original Message-
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 10:37 AM
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Maybe the server running ColdFusion has difficulty in resolving url's.
Possibly due to incorrectly configured DNS.

Check the links are obtainable when browsing direct to them from the
server if you have access to it.

Dave

-Original Message-
From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 14:54
To: CF-Talk
Subject: CFLOCATION to external sites - failure


Hi.  I have a series of pages, each of which points to an offsite link.
These external sites vary in location and nature.  In order to track
usage of these sites, I am passing users through an exit page.  On this
exit page, I pull the external URL from a database and stick it in a
CFLOCATION statement.

Sometimes this works, and sometimes I get a page could not be
found/404 error.  I am sure that this is not to do with the exit page's
placement: if I remove it, I get an entirely different error.  So I am
sure that the exit page is being loaded.

To make things stranger: if I paste the URL (pulled by the exit page)
directly into a browser, it works fine.  Or, if I use CFHEADER instead
of CFLOCATION, it works fine.

Anyone know of any reason why CFLOCATION should fail when pointing
offsite?

Thanks,
Matthieu



__
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCATION to external sites - failure

2002-09-27 Thread Dave Wilson

I'm not sure exactly how cflocation works. Whether it (as you say) sends the
redirect instruction to the client, leaving the dns resolution up to the
client machine. Or. It is all handled on the server side. I think possibly
the former of the two may be most likely after thinking about it. If this is
the case, then there may be some problems in the instructions being sent by
cflocation. Very stange though as I've not seen this problem occur without
there being a DNS resolution or networking problem occurring.

Sorry I can't help further,
Dave

-Original Message-
From: Turetsky, Seth [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 15:55
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Would that really matter, doesn't cflocation just tell the browser to
relocate to the specified url?

-Original Message-
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 10:37 AM
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Maybe the server running ColdFusion has difficulty in resolving url's.
Possibly due to incorrectly configured DNS.

Check the links are obtainable when browsing direct to them from the server
if you have access to it.

Dave

-Original Message-
From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 14:54
To: CF-Talk
Subject: CFLOCATION to external sites - failure


Hi.  I have a series of pages, each of which points to an offsite link.
These external sites vary in location and nature.  In order to track usage
of these sites, I am passing users through an exit page.  On this exit page,
I pull the external URL from a database and stick it in a CFLOCATION
statement.

Sometimes this works, and sometimes I get a page could not be found/404
error.  I am sure that this is not to do with the exit page's placement: if
I remove it, I get an entirely different error.  So I am sure that the exit
page is being loaded.

To make things stranger: if I paste the URL (pulled by the exit page)
directly into a browser, it works fine.  Or, if I use CFHEADER instead of
CFLOCATION, it works fine.

Anyone know of any reason why CFLOCATION should fail when pointing offsite?

Thanks,
Matthieu



__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCATION to external sites - failure

2002-09-27 Thread Turetsky, Seth

yeah, not too sure either.  might be along the lines of what mike is saying.
you should be able to see what the url looks like after the exit page does the 
cflocation.  if it looks like a legit url, and you copy and paste that and it works, 
cflocation must not be properly telling the browser to redirect.
lets see some code.

-Original Message-
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 11:08 AM
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


I'm not sure exactly how cflocation works. Whether it (as you say) sends the
redirect instruction to the client, leaving the dns resolution up to the
client machine. Or. It is all handled on the server side. I think possibly
the former of the two may be most likely after thinking about it. If this is
the case, then there may be some problems in the instructions being sent by
cflocation. Very stange though as I've not seen this problem occur without
there being a DNS resolution or networking problem occurring.

Sorry I can't help further,
Dave

-Original Message-
From: Turetsky, Seth [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 15:55
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Would that really matter, doesn't cflocation just tell the browser to
relocate to the specified url?

-Original Message-
From: Dave Wilson [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 27, 2002 10:37 AM
To: CF-Talk
Subject: RE: CFLOCATION to external sites - failure


Maybe the server running ColdFusion has difficulty in resolving url's.
Possibly due to incorrectly configured DNS.

Check the links are obtainable when browsing direct to them from the server
if you have access to it.

Dave

-Original Message-
From: Cornillon, Matthieu [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 14:54
To: CF-Talk
Subject: CFLOCATION to external sites - failure


Hi.  I have a series of pages, each of which points to an offsite link.
These external sites vary in location and nature.  In order to track usage
of these sites, I am passing users through an exit page.  On this exit page,
I pull the external URL from a database and stick it in a CFLOCATION
statement.

Sometimes this works, and sometimes I get a page could not be found/404
error.  I am sure that this is not to do with the exit page's placement: if
I remove it, I get an entirely different error.  So I am sure that the exit
page is being loaded.

To make things stranger: if I paste the URL (pulled by the exit page)
directly into a browser, it works fine.  Or, if I use CFHEADER instead of
CFLOCATION, it works fine.

Anyone know of any reason why CFLOCATION should fail when pointing offsite?

Thanks,
Matthieu




__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



Re: CFLOCATION to external sites - failure

2002-09-27 Thread Jochem van Dieten

Dave Wilson wrote:
 I'm not sure exactly how cflocation works. Whether it (as you say) sends the
 redirect instruction to the client, leaving the dns resolution up to the
 client machine. Or. It is all handled on the server side.

cflocation sends an HTTP 302 Found statuscode to the browser together 
with a header with the new location (see RFC 2616 or the list archive 
for past discussions). Effectively, it is nothing but:
cfheader statuscode=302
cfheader name=location value=fully qualified URL

Jochem

__
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: CFLOCATION to external sites - failure

2002-09-27 Thread Dave Wilson

Ahhh, cheers Jochem. Then the problem is the client resolving the url's.
Well I'd taken it for granted that the url's in the db were all fully
qualified, i.e. including http:// etc as Mike had suggested, but it's
starting to sound like Mike is correct, unless the client machine is having
extraneous networking problems (more unlikely).

Dave

-Original Message-
From: Jochem van Dieten [mailto:[EMAIL PROTECTED]]
Sent: 27 September 2002 16:22
To: CF-Talk
Subject: Re: CFLOCATION to external sites - failure


Dave Wilson wrote:
 I'm not sure exactly how cflocation works. Whether it (as you say) sends
the
 redirect instruction to the client, leaving the dns resolution up to the
 client machine. Or. It is all handled on the server side.

cflocation sends an HTTP 302 Found statuscode to the browser together
with a header with the new location (see RFC 2616 or the list archive
for past discussions). Effectively, it is nothing but:
cfheader statuscode=302
cfheader name=location value=fully qualified URL

Jochem


__
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists