I am trying to simulate a post request from a system I am not familiar with(http thrift).
With wire shark, I get the http request like :.
But I am going to perform a stress test with tools like ab
, so How I can transfer a Wireshark package to a ab
or curl
command http request ?
To make a GET request using Curl, run the curl command followed by the target URL. Curl automatically selects the HTTP GET request method unless you use the -X, --request, or -d command-line option.
When the -F option is used, curl sends the data using the multipart/form-data Content-Type. Another way to make a POST request is to use the -d option. This causes curl to send the data using the application/x-www-form-urlencoded Content-Type.
curl knows the HTTP method If you just pass in a HTTP URL like curl http://example.com , curl will use GET. If you use -d or -F curl will use POST, -I will cause a HEAD and -T will make it a PUT.
cURL supports several different protocols, including HTTP and HTTPS, and runs on almost every platform.
Here are two tools that can help you:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With