๐ ๏ธ
Web Tools Hub
Text
JSON
Encoding
Color
Network
Math
Misc
English
๐ง
curl All Languages
curl to all languages code generator
curl command
curl -X POST https://api.example.com/data -H "Content-Type: application/json" -d '{"key":"value"}'
Python
JavaScript (fetch)
Go
Java
PHP
Ruby
C#
1
2
3
4
5
6
7
8
import requests headers = { "Content-Type": "application/json" } response = requests.post("https://api.example.com/data", headers=headers, data='{"key":"value"}') print(response.text)
Copy
Instructions
curl to all languages code generator.