HTTP Request
Make HTTP requests using curl within the Docker network.
GET Request
curl -X GET "https://api.example.com/data" \
-H "Authorization: Bearer $TOKEN"
POST Request
curl -X POST "https://api.example.com/resource" \
-H "Content-Type: application/json" \
-d '{"key": "value"}'
File Upload
curl -X POST "https://api.example.com/upload" \
-F "file=@/data/input/document.pdf"
Tips for AI Agents
- Use
-ito include response headers in output. - Use
-w '%{http_code}'to capture the HTTP status code. - Use
-oto save response body to a file. - Use
-Lto follow redirects automatically.