cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: 7.9.4 SSL formpost problem

From: Larry Fahnoe <fahnoe_at_FahnoeTech.com>
Date: Wed, 6 Feb 2002 11:47:00 -0600

Daniel,

The formdata patch below does the trick!! I applied it to a clean 7.9.4
tree and ran several file upload tests with no trouble. I did not try it
with your earlier http patch or with the 7.9.3 ssluse. Thanks for the
help and rapid fix & of course curl itself.

--Larry

On Wed, Feb 06, 2002 at 04:44:48PM +0100, Daniel Stenberg was mumbling:
> On Wed, 6 Feb 2002, Larry Fahnoe wrote:
>
> (This is a discussion between me and Larry Fahnoe and it is now being brought
> to the curl mailing list with Larry's permission. This is in regard to a
> formpost problem introduced in 7.9.4 not previously present.)
>
> > I'd be happy to use "curl -vi"; I'm not currently familiar with it. I'll
> > do that later on today. I can dummy up test data so that the results can
> > be shared.
>
> -vi is just -v and -i, that is verbose and include headers in output.
>
> > Is the fact that my test environment is using a proxy while the live
> > environment does not? Seems okay to me as curl in both environments
> > exhibits the same problem.
>
> I don't think you'll see any difference when using proxy or not, as I can't
> recall having done anything to the proxy stuff recently.
>
> I did however do some own tests and I think (*crosses fingers*) this patch
> fixes the problems you have:
>
> diff -u -r1.30 formdata.c
> --- lib/formdata.c 2002/01/29 20:30:56 1.30
> +++ lib/formdata.c 2002/02/06 15:38:41
> @@ -1065,6 +1065,9 @@
>
> do {
>
> + if(size)
> + size += AddFormDataf(&form, "\r\n");
> +
> /* boundary */
> size += AddFormDataf(&form, "--%s\r\n", boundary);
>
>
> Of course I eagerly await your comments on this!
>
> --
> Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
> ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

-- 
Larry Fahnoe, Fahnoe Technology Consulting, fahnoe_at_FahnoeTech.com
952/925-0744      Minneapolis, Minnesota       www.FahnoeTech.com 
Received on 2002-02-06