From: "Rob Keniger" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, October 15, 2000 19:43
Subject: Re: Checking URL validity
> on 10/16/00 4:16 AM, Dave Watts at [EMAIL PROTECTED] wrote:
>
> > cfx_http gets the whole file too .. was just chceking that out last
> > night ... even when using verb="head"
>
> Dave,
> I've been testing this, and for me CFX_HTTP seems to return just the headers
> if I use verb="head". The CFX_HTTP.FileContent return variable is blank and
> a 90MB file I tested it on returned a result in 30ms.
>
> So for me it works well!
>
That wasn't Dave, it was me.
I just tried a different test and pointed cfx_http at an image and used
a url that included the full path and name of the image.
cfx_http.filecontent was empty and the rest of the query columns had all
the info I asked for.
So it works as advertised - as long as care is taken to specifiy the url
attribute in the tag correctly and the attribute points at non-html.
However, if verb="HEAD" is used and the url attribute is a .cfm or .html
then filecontent is filled with data.
The RFCs say that any HEAD call *must not* return ANY body-content.
Apparently this is true in re images, etc. but false for html text
for cfx_http.
But - it does work for fully specified images/and other binaries.
Good for checking if the files you work with exist (if you know
the full path). Bad for strict url validation and spider functions.
Pan
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.