redirection usually uses a http return code , as below ..
So the url to goto will be in the headers....
Justin
-------------------------------------------------
10.3.2 301 Moved Permanently
The requested resource has been assigned a new permanent URI and any future
references to this resource SHOULD use one of the returned URIs. Clients
with link editing capabilities ought to automatically re-link references to
the Request-URI to one or more of the new references returned by the server,
where possible. This response is cacheable unless indicated otherwise.
The new permanent URI SHOULD be given by the Location field in the response.
Unless the request method was HEAD, the entity of the response SHOULD
contain a short hypertext note with a hyperlink to the new URI(s).
If the 301 status code is received in response to a request other than GET
or HEAD, the user agent MUST NOT automatically redirect the request unless
it can be confirmed by the user, since this might change the conditions
under which the request was issued.
Note: When automatically redirecting a POST request after
receiving a 301 status code, some existing HTTP/1.0 user agents
will erroneously change it into a GET request.
10.3.3 302 Found
-------------------------------------------------
-----Original Message-----
From: Gordon Burns [mailto:[EMAIL PROTECTED]
Sent: 06 June 2003 18:18
To: [EMAIL PROTECTED]
Subject: [ cf-dev ] Using CFhttp
I need to grab the URL of a page.
The page is sent to me as a URL of an internal web server which
does a redirect on to the external web site. Don't ask..
I need to capture as a variable the resulting external web address.
e.g.
The page comes in as http://internal.xyz.com/techitem.html?id=546789
Click and it takes you to:
http://www.xyz.com/techman/support.html?st=65432
Note the total lack of correlation between the two number variables.
However, what I need to do is grab the resulting final URL above as a
variable.
Any suggestions? I can not see any clear way to do this using
CFhttp and it is a Friday night!
Thanks
Gordon
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]