Results 1 to 2 of 2

Thread: Java Client HTTP authentication

  1. #1
    kcolgan Guest

    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

  2. #2
    Join Date
    Aug 2005
    Posts
    1,433
    Rep Power
    12

    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!

Similar Threads

  1. Mac OSX install: Java errors & LDAP CA error
    By jefbear in forum Installation
    Replies: 9
    Last Post: 12-16-2006, 02:39 PM
  2. Java 1.5 crashing on PPC Mac 10.4.8
    By bradn in forum Installation
    Replies: 1
    Last Post: 12-08-2006, 05:27 PM
  3. Client Login Authentication
    By allroy in forum Administrators
    Replies: 2
    Last Post: 03-08-2006, 12:13 PM
  4. Replies: 0
    Last Post: 12-04-2005, 01:34 PM
  5. Replies: 2
    Last Post: 10-17-2005, 02:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •