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 08-26-2011, 01:32 PM
New Member
 
Posts: 4
Default Pre-auth problems, ZM_TEST=true cookie returned.

Hi All,

I have set up pre-auth for my application, but for some reason I am not getting the correct authentication token back in the cookie.

In my (java) application,

Code:
URL urlx = new URL(theURL);
	      URLConnection uc = urlx.openConnection();
              uc.connect();
	      String headerName=null;
  	      for (int i=1; (headerName = uc.getHeaderFieldKey(i))!=null; i++) {
		    	 	if (headerName.equals("Set-Cookie")) {                  
		    	 		String cookie = uc.getHeaderField(i);
		    	 		return cookie;
		    	 	}
		     }
theURL passed in is a valid url with a generated pre-auth value such as
http://192.168.2.184/service/preauth...7818cc86d3a429

however the returned cookie value is ZM_TEST=true. There are not multiple values in the Set-Cookie parameter.

The most bizzare thing about this all is that if I enter that url above into a web browser I will get a cookie written, ZM_AUTH_TOKEN=0_69f61.....

Any ideas for this ZM_TEST cookie being returned in my application?

Thanks,
Nick
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.