For what it may be worth: http://www.w3.org/Protocol
There's Location and Content-Location, see 14.30 and 14.40
Out of tricks indeed? ;)
Main Topics
Browse All TopicsI'm playing around with this to do some redirection in a form:
a field containing is located at the top :
@if( something ;
@sethttpheader("Location";
Now this works 'sometimes' , but not all the time... I suppose because the HTTP Response code is not changed properly from 200 to 306...
The HTTP headers are there on the response from the server, it just doesn't work ....
So how could I do this - it's supposed to be a simple solution, preferably in @formula's . Any ideas ?
cheers,
Tom
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
For what it may be worth: http://www.w3.org/Protocol
There's Location and Content-Location, see 14.30 and 14.40
Out of tricks indeed? ;)
Edit html attributes and in the HTML Head content, give a meta tag something like this:
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL=http://www.bozzie.com"
Partha
And you don't want to use standard redirection using HTTP-Equiv or JavaScript? You say, the second time the header contains the Location, but the browser doesn't respond on it? What's the difference between the first and the seconf header? Caching problem on either side? Do you also use other settings, such as Last-Modified or so? You can look at the ldd/performance documents, e.g. WebApps_caching.pdf, it describes some of the techniques "they" use in R6.
Got two donkeys here, they'd make good company for your pony. They might learn something ;)
hmm redirection needs to be hidden, why don't u write a webqueryopen(if efficiency doesn't matter that much) and do a location.replace for the $$htmlhead field...
BTW ur question made me to read abt HTTP headers and redirection , most of them talk only about location , let me know if u find out any...
Partha
The HTTP-EQUIV doesn't work because MS removed it in I think IE5 and up. You could try sending a real refresh header.
A more Domino-ish way would be to open your forms (>OpenDocument) and documents (?EditDocument, ?OpenDocument) via an agent. The agent takes params, tests conditions, and redirects either to the "expected" form/document, or else it redirects to you alternate. Two problems with this method:
1) redirect ALWAYS occurs, instead of only for special conditions (normal condition produces redirect to the form or document)
2) bookmarks
A similar workaround might use a frameset. The framset consists of a single frame, computed URL, with a default target of _parent. The redirect calculation takes place in the formula. Downsides:
1) user never gets to see a true URL
2) also effectively does a "needless" redirect for normal conditions, as the form has to load in the frame
3) bookmarks are unlikely to be a problem, but... a) MS does this weird thing with bookmarking framesets, not sure how the interaction will work, and b) users CAN right click in the frame and choose to bookmark
Re: your 200 v. 306. 306 has been deprecated. 303 and 307 are the normal redirects.
OK, thanks all of you, I really hoped someone to come up with a wonder solution (because I think using the HTTP headers would be a very nice solution for redirecting - I really am too lazy to write an agent :-) )
But it's la dolce Italia for me now - 3 weeks well-earned (or whatever) holiday ... yey.
cheers,
Tom
Unfortunately, the response code is not considered a standard header...
HTTP/1.1 200 Document follows
Server: Lotus-Domino/5.0.7
Date: Thu, 20 May 2004 16:07:10 GMT
Connection: close
Accept-Ranges: bytes
Vary: *
Content-Location: vpn.html
Content-Type: text/html
Content-Length: 10663
Last-Modified: Wed, 14 Apr 2004 18:01:00 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
The response code is merely the second word of the first line of the response. It would indeed be nice if there was still some way to set that.
Business Accounts
Answer for Membership
by: Bozzie4Posted on 2004-05-19 at 03:07:24ID: 11106485
Actually, it works for the first connection, when a user authenticates himself for the first time. Then afterwards, he just continues (although the headers are sent to the browser)