cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: --verbose with -F

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Thu, 12 Oct 2006 10:49:05 -0700

On Sun, Oct 08, 2006 at 01:03:20PM +0200, Daniel Stenberg wrote:
> 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.

I looked into the problem, and it's due to the -d POST code sending the data
into the trace callback tagged as header data, not body data. The -F code
tags it correctly, and the -v trace code just ignores such data. Fixing it
means a slight backward compatibility break since the body data will be
tagged differently in that callback. I will also change the -v code to
display a short message when such body data is being logged, rather than
ignoring it altogether, but that's not an API break.

>>> Dan

-- 
http://www.MoveAnnouncer.com              The web change of address service
          Let webmasters know that your web site has moved
Received on 2006-10-12