cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --verbose with -F

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 8 Oct 2006 13:03:20 +0200 (CEST)

On Fri, 6 Oct 2006, Dan Fandrich wrote:

> When doing a POST with -d, the --verbose option will display the actual data
> sent to the server. But if you use -F instead of -d, curl doesn't display
> any of the data sent. This really confused me while I was debugging a
> problem with -v, since it looked like curl wasn't sending any data at all.

Indeed a confusing discrepancy.

> The man page does say to use --trace-ascii if -v "doesn't give you enough
> details", but this difference in behaviour is unexpected. I assume the
> actual data isn't displayed in the -F case because it's probably going to be
> a long file that's being transferred, but it would be nice to have a debug
> message in the -F case saying "data elided" or something as a warning.

Feel free to have a go at it. The little time I steal from my family for curl
hacking right now is mostly devoted for lib core and functionality "things".

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2006-10-08