title: Send data to a Discord webhook
body: <p>Without using the requests module, how can I send messages to a Discord webhook?
  I have tried following code:</p>
  
  <pre><code>import urllib2
  import json
  
  url = 'webhook url'
  values = {"username": "Bot", "text": "This is a test message."}
  
  data = json.dumps(values)
  req = urllib2.Request(url, data)
  response = urllib2.urlopen(req)
  the_page = response.read()
  </code></pre>
  
  <p>This returns following error: </p>
  
  <pre><code>urllib2.HTTPError: HTTP Error 403: Forbidden
  </code></pre>