Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 10-04-2006, 08:07 AM
Member
 
Posts: 12
Default Java Client HTTP authentication

Hi,
I am currently trying to develop a simple System Tray app (like the much anticipated 'toaster' app planned for a future Zimbra release). I'm at the start of my development and the first problem that I've encountered is authentication: How do I authenticate with the Zimbra server using a Java HTTP client? The URL I want to read from is

'http://<zimbra server>/home/<user>/inbox.rss'

according to the 'rest.txt' guide in the Zimbra source. If I try to open a URLConnection with this URL at the minute I get a HTTP Response Code of 401, obviously because I haven't authenticated with the server.

Basically, for starters, I'd just like to authenticate with the server and then call the RSS feed in order to display the number of new messages as a tooltip for the System Tray app.

Any advice on how to do this HTTP authentication would be appreciated.

Cheers,
Kevin
Reply With Quote
  #2 (permalink)  
Old 10-04-2006, 01:58 PM
Zimbra Employee
 
Posts: 1,434
Default basic auth

Basic authentication, as defined in RFC 2617, should work. If you're using a library, it'll provide an API for this.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.