This is interesting and explains what it is:
http://msdn2.microsoft.com/en-us/library/ms533046.aspx
On Jan 11, 2008, at 1:39 PM, Michael Prichard wrote:
Hello Oleg!
This helped a lot! Thanks so much. I do have a question on how
HTTPClient handles cookies. If you look at this Debug info:
2008/01/11 13:31:18:443 EST [DEBUG] header - << "Set-Cookie:
sessionid=bf1658c3-fdc9-4f4a-aea7-abc2045dbae4; path=/[\r][\n]"
2008/01/11 13:31:18:443 EST [DEBUG] header - << "Set-Cookie:
cadata="1tTw0QI/b5VZGmsN2tzyk+oXwkKDw3L3oN3JvlkTE23FC5
+7NIp4EwiupiXOuSEat3L2yPap67t7YwoAAzPAnH4YtK+11cUJ05VU9Zw==";
HttpOnly; secure; path=/[\r][\n]"
2008/01/11 13:31:18:443 EST [DEBUG] header - << "Date: Fri, 11 Jan
2008 18:30:11 GMT[\r][\n]"
2008/01/11 13:31:18:444 EST [DEBUG] HttpMethodBase - Cookie
accepted: "$Version=0; sessionid=bf1658c3-fdc9-4f4a-aea7-
abc2045dbae4; $Path=/"
2008/01/11 13:31:18:444 EST [DEBUG] CookieSpec - Unrecognized
cookie attribute: name=HttpOnly, value=null
2008/01/11 13:31:18:444 EST [DEBUG] HttpMethodBase - Cookie
accepted: "$Version=0; cadata=1tTw0QI/b5VZGmsN2tzyk
+oXwkKDw3L3oN3JvlkTE23FC5
+7NIp4EwiupiXOuSEat3L2yPap67t7YwoAAzPAnH4YtK+11cUJ05VU9Zw==; $Path=/"
2008/01/11 13:31:18:444 EST [DEBUG] HttpMethodDirector - Redirect
required
2008/01/11 13:31:18:444 EST [INFO] HttpMethodDirector - Redirect
requested but followRedirects is disabled
2008/01/11 13:31:18:445 EST [DEBUG] DefaultHttpParams - Set
parameter http.protocol.cookie-policy = compatibility
2008/01/11 13:31:18:445 EST [DEBUG] HttpMethodBase - Resorting to
protocol version default close connection policy
2008/01/11 13:31:18:445 EST [DEBUG] HttpMethodBase - Should NOT
close connection, using HTTP/1.1
2008/01/11 13:31:18:445 EST [DEBUG] HttpConnection - Releasing
connection back to connection manager.
2008/01/11 13:31:18:456 EST [DEBUG] header - >> "GET /exchange/
HTTP/1.1[\r][\n]"
2008/01/11 13:31:18:456 EST [DEBUG] HttpMethodBase - Adding Host
request header
2008/01/11 13:31:18:456 EST [DEBUG] header - >> "User-Agent:
Jakarta Commons-HttpClient/3.0.1[\r][\n]"
2008/01/11 13:31:18:457 EST [DEBUG] header - >> "Host: 10.0.1.197
[\r][\n]"
2008/01/11 13:31:18:457 EST [DEBUG] header - >> "Cookie:
sessionid=bf1658c3-fdc9-4f4a-aea7-abc2045dbae4[\r][\n]"
2008/01/11 13:31:18:457 EST [DEBUG] header - >> "[\r][\n]"
It looks like two cookies are created but I don't see two being
sent. Notice only "sessionid" is sent and not "cadata". I put the
cookie policy as BROWSER_COMPATIBILITY and still no luck. The way
I have gone around this is to turn cookies off after the first
connection and set the headers manually.
Thoughts?
All the best!
Michael
On Jan 11, 2008, at 7:13 AM, Oleg Kalnichevski wrote:
On Thu, 2008-01-10 at 16:46 -0500, Michael Prichard wrote:
Anyone using HTTPClient to authenticate with exchange using FBA?
Any
hints or examples how?
By FBA you mean form-based authentication, I assume? Then Client HTTP
Programming Primer is your friend:
http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners
http://svn.apache.org/viewvc/httpcomponents/oac.hc3x/trunk/src/
examples/FormLoginDemo.java?view=markup
Oleg
Thanks,
Michael
--------------------------------------------------------------------
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]