[Standards-JIG] jep-0025

SEN sendel2000 at hotbox.ru
Thu Mar 25 07:35:56 UTC 2004


sers MAY send header with "Accept:"  field for set field "Content-Type:"
its need for any proxy&gates (sauch as WAP)
*************************************************
Ideas from cmessenger (http://cmessenger.cleverlance.com/)
cmessenger have changed jep-0025

it havn't "Set-Cookie:" field,
it work for this:

POST /wc12/webclient HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: text/plain
Host: webim.jabber.com

0,cmessenger.cleverlance.com,<stream:stream to="jabber.com" 
xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams">

Answerd:
Date: Fri, 15 Mar 2002 20:30:30 GMT
Server: Apache/1.3.20
Content-Type: text/plain

[657909076]<?xml version='1.0'?> <stream:stream 
xmlns:stream='http://etherx.jabber.org/streams' id='3C9258BB' 
xmlns='jabber:client' from='jabber.com'>

where [657909076] - is cookie...

ок... its may be usefull for you
*******************************************
My Ideas: Guarantee delivery
When connection break (not correctly closed) , messages which have been 
sent disappear ...

The decision of a problem:

1. when time out has left, messages down to in offline....
+ messages will read when user make any connection (by http-polling or 
directly)
- Difficultly for realization, must be insert in server.

2. based on hashed login+password (example: SHA1(concat(login,password)); )
it takes as uneq Cookie...!!!
server not needed for generate Cookie, its make a client. And the report 
will be such:

cookieid=SHA1(concat(login,password));  //

POST /wc12/webclient HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Accept: text/plain
Host: webim.jabber.com

cookieid,<stream:stream to="jabber.com" xmlns="jabber:client" 
xmlns:stream="http://etherx.jabber.org/streams">

If server have timeout for "cookieid" user, all messages down to 
spool... (spool is created for those at whom session is not closed)

When logged succeful server look, if  for "cookieid" have unsent 
messages, it send for it...

ok..

+ all messages was delivery when user logon after break simple for 
realization.
- unrecieved messages  was recieved only by http-poll (but it's not 
problem)




More information about the Standards mailing list