ahmadnassri/httpsnippet

View on GitHub
src/targets/python/requests/fixtures/text-plain.py

Summary

Maintainability
A
1 hr
Test Coverage
import requests

url = "http://mockbin.com/har"

payload = "Hello World"
headers = {"content-type": "text/plain"}

response = requests.post(url, data=payload, headers=headers)

print(response.json())