How to send a push notification request using XHR (Ajax)
<p>This is the command to make a request from the terminal, with cURL. It works! However, I have no idea how to make the same request via XHR (Ajax). Any help will be much appreciated.</p>

<pre><code>curl --header "Authorization: key=ABC123" --header "Content-Type: application/json" https://android.googleapis.com/gcm/send -d "{\"registration\_ids\":[\"DFG456\"]}"
</code></pre>