Chạy cURL

Kiểm thử HTTP API trực tuyến - dán cURL hoặc tạo request và xem phản hồi trực tiếp.

cURL và HTTP client trực tuyến miễn phí

Debug API mà không rời trình duyệt. Dán lệnh cURL copy từ DevTools hoặc tài liệu API, hoặc tự tạo request với method, URL, header và body.

Dokall gửi request phía server để vượt CORS và hiển thị status, header, thời gian, body phản hồi - có pretty-print JSON khi phù hợp.

Frequently Asked Questions

What is cURL?
cURL is a command-line tool for transferring data with URLs. It supports HTTP, HTTPS, FTP, and dozens of other protocols. Developers use it to test APIs, download files, and debug network requests without writing code.
Can I test POST requests?
Yes. Paste a curl command with -X POST, -d data, or --data-raw flags. Dokall parses the command and executes the HTTP request, showing the response status, headers, and body.
Are my API keys safe?
Requests are sent from your browser directly to the target URL. Dokall does not proxy or log your requests. However, the target server receives your headers and credentials. Avoid testing with production secrets on shared machines.
Why might a request fail with CORS error?
Browsers block cross-origin requests that the target server does not allow. cURL from the terminal has no CORS restriction. If a request fails in the browser but works in terminal curl, the server needs to add Access-Control-Allow-Origin headers.
What is the difference between curl runner and curl to code?
Curl runner executes the command and shows the live response. Curl to code converts the command into JavaScript, Python, Go, or other language snippets without executing it. Use runner to test; use to code to integrate into your app.