cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: 7.9.4 SSL formpost problem

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 6 Feb 2002 16:44:48 +0100 (MET)

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
Received on 2002-02-06