user
Write a code snippet that creates an HTTPS POST request.
Response:
assistant
import requests
url = "https://example.com"
data = { "key1": "value1" }
headers = { "Content-Type": "application/json" }
response = requests.post(url, data=data, headers=headers)