[Yanel-dev] Suffix or user-agent dependent authentication scheme

Michael Wechner michael.wechner at wyona.com
Sun Dec 31 00:09:15 CET 2006


Hi

Please see below HTTP traffic of Sunbird (Calendar) (and then read on 
further down below):


Sunbird tries to save (publish) the calendar back to the server:

PUT /yanel/yanel-website/calendar.ics HTTP/1.1..Host: 
192.168.1.40:8080..User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS
  X Mach-O; en-US; rv:1.9a1) Gecko/20061006 Sunbird/0.3..Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0
  .9,text/plain;q=0.8,image/png,*/*;q=0.5..Accept-Language: 
en-us,en;q=0.5..Accept-Encoding: gzip,deflate..Accept-Charset: IS
  O-8859-1,utf-8;q=0.7,*;q=0.7..Keep-Alive: 300..Connection: 
keep-alive..Content-Length: 2017..Content-Type: text/calendar...


Sunbirds tries to read (subscribe) from the server:

GET /yanel/yanel-website/calendar.ics HTTP/1.1..Host: 
192.168.1.40:8080..User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS
  X Mach-O; en-US; rv:1.9a1) Gecko/20061006 Sunbird/0.3..Accept: 
text/xml,application/xml,application/xhtml+xml,text/html;q=0
  .9,text/plain;q=0.8,image/png,*/*;q=0.5..Accept-Language: 
en-us,en;q=0.5..Accept-Encoding: gzip,deflate..Accept-Charset: IS
  O-8859-1,utf-8;q=0.7,*;q=0.7..Keep-Alive: 300..Connection: 
keep-alive..Pragma: no-cache..Cache-Control: no-cache....


Sunbird understands WWW-Authenticate BASIC, but the question is how
to recognize this on a more general level resp. differentiate between
the various requests a server is receiving from different clients.

The only way I currently see is to check on the User-Agent or the 
suffix, e.g. "ics".

WDYT?


Thanks

Michi

-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list