W3C home > Mailing lists > Public > www-talk@w3.org > July to August 2003

Redirects within a single roundtrip?

From: Carsten Leue <CLEUE@de.ibm.com>
Date: Wed, 2 Jul 2003 11:00:39 +0200
To: www-talk@w3.org
Message-ID: <OF83ACDCF4.80B14828-ONC1256D57.00316D3D-C1256D57.00317F7E@de.ibm.com>

I would like to send an HTTP request to a servlet (portal server) that
results in a state transition of this servlet. Say the URL of this request
is "http://myserver.com/servlet?transition". The request returns the
content of the new state that is now represented by a new URL "
http://myserver.com/servlet?state". If the servlet returns with a 200
return code, the content is displayed and the transition URL is displayed
in the browser's location bar. A refresh would thus result in reinitiating
the state transition.
Is it possible to tell the browser to direct refreshes and invocations of
the back/forward button to the state-URL instead of the transition URL
within one roundtrip? I could return a redirect, but this results in a
second round trip which causes peformance problems. I tried the return code
201 with a location header field that points to the state URL, but this
does not seem to work.
Any suggestions or guidance? The solution should be browser type

Thank you very much for your help.

Best regards
Carsten Leue

Dr. Carsten Leue
Received on Wednesday, 2 July 2003 05:30:58 UTC

This archive was generated by hypermail 2.4.0 : Monday, 20 January 2020 16:08:27 UTC