8
8
<link rel="up" href="ch02.html" title="Implementation of Connector Features">
9
9
<link rel="prev" href="ximian-connector-favorites.html" title="Favorite Public Folders">
10
10
<link rel="next" href="ximian-connector-freebusy.html" title="Free/Busy Searches">
11
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
13
<link rel="chapter" href="ch01.html" title="Exchange Architectural Notes">
14
14
<link rel="chapter" href="ch02.html" title="Implementation of Connector Features">
113
113
We then <span class="command"><strong>POST</strong></span> the form with the user's username and
116
<div class="informalexample"><pre class="programlisting">
117
POST /exchweb/bin/auth/owaauth.dll HTTP/1.1
118
Host: ex2k3.xcs.ximian.com
116
<div class="informalexample">
117
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
120
<td class="listing_lines" align="right"><pre>1
126
<td class="listing_code"><pre class="programlisting">POST /exchweb/bin/auth/owaauth.dll HTTP/<span class="number">1.1</span>
127
<span class="keyword">Host</span>: ex2k3.xcs.ximian.com
119
128
Content-Type: application/x-www-form-urlencoded
120
Content-Length: <em class="replaceable"><code>len</code></em>
122
destination=https%3A%2F%2Fex2k3.xcs.ximian.com%2Fexchange%2F&flags=0&username=<em class="replaceable"><code>username</code></em>&password=<em class="replaceable"><code>password</code></em>&SubmitCreds=Log+On&trusted=4
129
Content-Length: <em <span class="type">class</span>=<span class="number">"replaceable"</span>><code>len</code></em>
131
destination=https%3A%<span class="number">2F</span>%<span class="number">2F</span>ex2k3.xcs.ximian.com%<span class="number">2F</span>exchange%<span class="number">2F</span>&flags=<span class="number">0</span>&username=<em <span class="type">class</span>=<span class="number">"replaceable"</span>><code>username</code></em>&password=<em <span class="type">class</span>=<span class="number">"replaceable"</span>><code>password</code></em>&SubmitCreds=Log+On&trusted=<span class="number">4</span></pre></td>
125
138
To which the server responds:
127
<div class="informalexample"><pre class="programlisting">
128
HTTP/1.1 302 Moved Temporarily
129
Server: Microsoft-IIS/5.0
130
Date: Thu, 24 Jul 2003 17:23:33 GMT
140
<div class="informalexample">
141
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
144
<td class="listing_lines" align="right"><pre>1
152
<td class="listing_code"><pre class="programlisting">HTTP/<span class="number">1.1</span> <span class="number">302</span> Moved Temporarily
153
<span class="keyword">Server</span>: Microsoft-IIS/<span class="number">5.0</span>
154
<span class="keyword">Date</span>: Thu, <span class="number">24</span> Jul <span class="number">2003</span> <span class="number">17</span>:<span class="number">23</span>:<span class="number">33</span> GMT
131
155
X-Powered-By: ASP.NET
132
Location: https://ex2k3.xcs.ximian.com/exchange/
133
Set-Cookie: sessionid=fbb50caf-381a-4f85-9582-a7a902b4561f,0x409; path=/
134
Set-Cookie: cadata="2,8JOrhvROIJykiSTShG6Ujrigo+a5XQgEbws7tq3//37QERyFwWDoV7xw6DG+Awlm"; HttpOnly; secure; path=/
156
<span class="keyword">Location</span>: https:<span class="comment">//ex2k3.xcs.ximian.com/exchange/</span>
157
Set-Cookie: sessionid=fbb50caf-381a-<span class="number">4f</span>85-<span class="number">9582</span>-a7a902b4561f,<span class="number">0x409</span>; path=/
158
Set-Cookie: cadata=<span class="number">"2,8JOrhvROIJykiSTShG6Ujrigo+a5XQgEbws7tq3//37QERyFwWDoV7xw6DG+Awlm"</span>; HttpOnly; secure; path=/
159
Content-Length: <span class="number">0</span></pre></td>
138
166
("<code class="literal">HttpOnly</code>" is a Microsoft extension to the Cookie
139
167
protocol, which means that the cookie should not be visible to
146
174
good. This request (and all further requests) should include the two
149
<div class="informalexample"><pre class="programlisting">
150
Cookie: sessionid=fbb50caf-381a-4f85-9582-a7a902b4561f,0x409;
151
cadata="2,8JOrhvROIJykiSTShG6Ujrigo+a5XQgEbws7tq3//37QERyFwWDoV7xw6DG+Awlm"
177
<div class="informalexample">
178
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
181
<td class="listing_lines" align="right"><pre>1
183
<td class="listing_code"><pre class="programlisting"><span class="keyword">Cookie</span>: sessionid=fbb50caf-381a-<span class="number">4f</span>85-<span class="number">9582</span>-a7a902b4561f,<span class="number">0x409</span>;
184
cadata=<span class="number">"2,8JOrhvROIJykiSTShG6Ujrigo+a5XQgEbws7tq3//37QERyFwWDoV7xw6DG+Awlm"</span></pre></td>
154
191
If you do an <span class="application">OWA</span> <span class="command"><strong>GET</strong></span> (a
155
192
<span class="command"><strong>GET</strong></span> without "<code class="literal">Translate: F</code>"),
159
196
"<code class="literal"><span class="errorcode">440</span> <span class="errorname">Login
160
197
Timeout</span></code>" cancelling the cookie:
162
<div class="informalexample"><pre class="programlisting">
164
Set-Cookie: sessionid=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
165
Set-Cookie: cadata=; path=/; expires=Thu, 01-Jan-1970 00:00:00 GMT
199
<div class="informalexample">
200
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
203
<td class="listing_lines" align="right"><pre>1
207
<td class="listing_code"><pre class="programlisting"><span class="number">440</span> Login Timeout
208
Set-Cookie: sessionid=; path=/; expires=Thu, <span class="preproc">0</span><span class="number">1</span>-Jan-<span class="number">1970</span> <span class="preproc">0</span><span class="number">0</span>:<span class="preproc">0</span><span class="number">0</span>:<span class="preproc">0</span><span class="number">0</span> GMT
209
Set-Cookie: cadata=; path=/; expires=Thu, <span class="preproc">0</span><span class="number">1</span>-Jan-<span class="number">1970</span> <span class="preproc">0</span><span class="number">0</span>:<span class="preproc">0</span><span class="number">0</span>:<span class="preproc">0</span><span class="number">0</span> GMT
210
<span class="keyword">Connection</span>: close</pre></td>
169
217
Eventually, when the cookie does expire, you will get a
170
218
"<code class="literal"><span class="errorcode">440</span> <span class="errorname">Login