title: Making a HTTP POST Request in Swift 2
body: <p>On <a href="https://firebase.google.com/docs/cloud-messaging/downstream#sending_topic_messages_from_the_server" rel="nofollow">Google's Firebase website</a>, in order to send downstream messages, I have to do an HTTP Post request. This is what it says to do: </p>
  
  <blockquote>
    <p>Sending downstream messages from the server:</p>
    
    <p>To address or "target" a downstream message, the app server sets to
    with the receiving client app's registration token. You can send
    notification messages with predefined fields, or custom data messages;
    see Notifications and data in the message payload for details on
    payload support. Examples in this page show how to send data messages
    in HTTP and XMPP protocols.</p>
  </blockquote>
  
  <p><strong>HTTP POST Request</strong></p>
  
  <pre><code>https://fcm.googleapis.com/fcm/send
  Content-Type:application/json
  Authorization:key=AIzaSyZ-1u...0GBYzPu7Udno5aA
  
  { "data": {
     "score": "5x1",
     "time": "15:10"
    },
    "to" : "bk3RNwTe3H0:CI2k_HHwgIpoDKCIZvvDMExUdFQ3P1..."
  }
  </code></pre>
  
  <p>How do I do this in Swift 2?</p>