title: Coldfusion 9 cfexchangecalendar exchange server outlook 2007
body: <p>CF9
  Exchange server 2007 (hosted)</p>
  
  <p>I am trying to add a calendar event for a user on our hosted exchange server. I'm getting the error ;
  Unable to connect to the Exchange server using HTTP/HTTPS protocol.</p>
  
  <p>HTTP response code : 400</p>
  
  <p>The code is;</p>
  
  <pre><code>&lt;cfexchangeCalendar action="Create" 
      username="EXCH016\ron_domain"
      password="password" 
      mailboxname="ron"
      server="https://owa016.msoutlookonline.net/owa"
      Protocol="https"
      formbasedauthentication=true
      formbasedauthenticationURL="https://owa016.msoutlookonline.net/owa/auth/owaauth.dll"
      Event="#sEvent#"
      result="theUID"&gt;
  
      #theUID#&lt;br&gt;
  </code></pre>
  
  <p>I know I can contact the server using the following;</p>
  
  <pre><code>&lt;cfhttp URL='https://owa016.msoutlookonline.net/owa' result='res' &gt;
  &lt;cfdump var="#res#"&gt;
  &lt;cfoutput&gt;#res.filecontent#&lt;/cfoutput&gt;
  </code></pre>
  
  <p>I get the form that requests email address and password.</p>
  
  <p>I've been working on this problem for some time now.  I can go to the owa page via browser and log in.  At this point I'm at a loss on how to debug the problem.</p>