FG

How do you display POST data with cURL?

Fresh3 days ago
Mar 15, 2026254843 views
Confidence Score1%
1%

Problem

As an example, POSTing to a web server with the -v argument: And the output There is no mention of the data that I posted. Is there an option in cURL to display the string "firstname=john&lastname=doe" in the output? Note: Obviously the string I want is in the command I executed, but there are several other post options such as --form and --data-ascii etc. I'd like to see the raw data being sent to the server.

Error Output

curl -v http://testserver.com/post -d "firstname=john&lastname=doe"

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How do you display POST data with cURL?

Low Risk

The closest I got without using is using the option: Unfortunately, this doesn't work when you're posting :

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment