title: I dont know why I get a 400 bad request error for sending a discord webhook. Everything seems fine but I am new at this
body: <p>I am new at this so it is probably a stupid mistake</p>
  
  <p>Im trying to make a program that sends the price of a stock quote to discord as a webhook.</p>
  
  <p>The webhook does not send. But, when I do print(symbol.json()["Global Quote"]) I get all of the information. </p>
  
  <p>I think there is a problem with the "Content-Type": "application/json" but im not really sure how to fix it.</p>
  
  <p>This is a snippet: </p>
  
  <pre class="lang-py prettyprint-override"><code>webhook = 'https://discordapp.com/api/webhooks/609119785015312414/HOkHGPWqfPfLJHpSp15XZ9dUNhUDly_DKQ8OwLgk3Rw0-4G08gx0mOrKN3FKhompb5ig'
  session = requests.session()
  symbol = session.get("https://www.alphavantage.co/query?function=GLOBAL_QUOTE&amp;symbol=AAPL&amp;apikey=F4RV85MVA2M2YTIY")
  
  data = {}
  data["content"] = symbol.json()["Global Quote"]
  data["username"] = "AAPL"
  
  result = requests.post(webhook, data=json.dumps(data), headers={"Content-Type": "application/json"})
  
  try:
    result.raise_for_status()
  except requests.exceptions.HTTPError as err:
    print(err)
  else:
    print("Payload delivered successfully, code {}.".format(result.status_code))
  </code></pre>
  
  <p>The output for this is: 400 Client Error: BAD REQUEST for url: <a href="https://discordapp.com/api/webhooks/609119785015312414/HOkHGPWqfPfLJHpSp15XZ9dUNhUDly_DKQ8OwLgk3Rw0-4G08gx0mOrKN3FKhompb5ig" rel="nofollow noreferrer">https://discordapp.com/api/webhooks/609119785015312414/HOkHGPWqfPfLJHpSp15XZ9dUNhUDly_DKQ8OwLgk3Rw0-4G08gx0mOrKN3FKhompb5ig</a></p>
  
  <p>btw - I deleted the webhook before posting this</p>