I have curl request with me.
Is there a way to use the “CURL REQUEST” directly in k6 instead of “HTTP Request”?
As it would take some time to format in the proper HTTP request format. Please let me know
I have curl request with me.
Is there a way to use the “CURL REQUEST” directly in k6 instead of “HTTP Request”?
As it would take some time to format in the proper HTTP request format. Please let me know
No, sorry, curl is a different software project that has nothing to do with k6, k6 doesn’t understand curl commands…
I came across this page with the same issue. The workaround I found is to use https://curlconverter.com/node-http/ to convert cURL commands to node.js, then substitute import http from 'http';
with import http from 'k6/http';
You can paste your curl on chatgpt or related gen ai free tools and get k6 code from it alos