You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sending load via vegeta using the HTTP request in cURL format rather than writing it in the json or httpformats as defined in the usage manual. This could be using the -targets flag pointing to a file which contains the request in the cURL format (and curl as an addition to the possible options for the -format flag).
An example of contents of a target file containing the request in the curl format -
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET http://hostname/resource
curl --data "param1=value1¶m2=value2" POST http://hostname/resource
The target files containing requests in cURL format can also have rules about having comments after a # or post requests being able to refer to @/path/to/body.json for their request bodies like vegeta currently does for files in the http format.
Background
More often than not, we have HTTP requests in cURL format, but when sending those requests via vegeta, we have to change the format to the ones specified by Vegeta (either json or http). If vegeta accepted requests in cURL format and converted them to vegeta format internally, that would be very helpful.
Workarounds
None that I am aware of.
The text was updated successfully, but these errors were encountered:
Proposal
Sending load via vegeta using the HTTP request in cURL format rather than writing it in the
json
orhttp
formats as defined in the usage manual. This could be using the -targets flag pointing to a file which contains the request in the cURL format (andcurl
as an addition to the possible options for the-format
flag).An example of contents of a target file containing the request in the
curl format
-The target files containing requests in cURL format can also have rules about having comments after a # or post requests being able to refer to
@/path/to/body.json
for their request bodies like vegeta currently does for files in thehttp
format.Background
More often than not, we have HTTP requests in cURL format, but when sending those requests via vegeta, we have to change the format to the ones specified by Vegeta (either
json
orhttp
). If vegeta accepted requests in cURL format and converted them to vegeta format internally, that would be very helpful.Workarounds
None that I am aware of.
The text was updated successfully, but these errors were encountered: