[JDEV] 302 Redirect

Klaus H. Wolf wolf at bluehands.de
Fri Jul 26 10:43:18 CDT 2002


Hi,

can the 302 Redirect code be used for iq error responses?
If yes: The saying is that the redirect JID is sent as CDATA of the error
tag, right?
I propose to put the entire should-be request into the CDATA. This allows to
change more than just the destination, i.e. the namespace or more.

Example :
CLIENT: <iq id='5' type='get' to='user at server'><query
xmlns='jabber:iq:xx'/></iq>
SERVER: <iq id='5' type='error'>
         <error code='302'>
           <iq id='5' type='get' to='user at server'><query
xmlns='storage:client:xx'/></iq>
         </error>
        </iq>

It might be necessary to escape the embedded data.

Opinions?

--
Dr. Klaus H. Wolf
bluehands GmbH & Co.mmunication KG
http://www.bluehands.de/people/hw
+49 (0721) 16108 75





More information about the JDev mailing list