cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: HTTPS post hangs

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 29 Jan 2002 20:47:23 +0100 (MET)

On Mon, 28 Jan 2002, Dale Counts wrote:

> >>Would you be capable of debugging this a little for us?
>
> ;) I will try can you point me in the direction of the curl

Most the of the transfer loop is in lib/transfer.c, but this is a formpost
which is a bit tricky. The fread() is set to a function in lib/formdata.c

I managed to repeat this problem (even without SSL):

$ curl -vi -F "file=@BIGFILE" [URL]/postit.cgi -o dump

BIGFILE needs to be bigger than ~40K, and postit.cgi just does this:

#!/usr/local/bin/perl

print "Content-Type: text/html\n\n";

while (<STDIN>) {
    print $_;
}

But darnit, I haven't been able to figure out why this hangs yet... :-/

-- 
    Daniel Stenberg -- curl groks URLs -- http://curl.haxx.se/
Received on 2002-01-29