Picon
Favicon

RE: Unable to List directory using implicit FTPS

below is the version details:

curl 7.20.0 (sparc-sun-solaris2.10) libcurl/7.20.0 OpenSSL/0.9.8j zlib/1.2.3 libidn/1.11 libssh2/1.2.4
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s rtsp scp sftp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM SSL libz.

I do not undesrtand wha is that wrong ?

Regards,
Satheesh

________________________________________
From: curl-users-bounces <at> cool.haxx.se [curl-users-bounces <at> cool.haxx.se] On Behalf Of Daniel
Stenberg [daniel <at> haxx.se]
Sent: Saturday, February 27, 2010 3:52 AM
To: the curl tool
Subject: Re: Unable to List directory using implicit FTPS

On Fri, 26 Feb 2010, Sateesh Karanam (HCL Financial Services) wrote:

> curl -vvv --cacert curl-ca-bundle.crt --sslv3 -l
> ftps://usr:passwd <at> FTPS.com:6366/receive/

What curl version on what OS?

> > PASV
> < 227 Entering Passive Mode (204,90,130,188,25,7)
> *   Trying 10.140.192.66... connected
> * Connecting to 204.90.130.188 (10.140.192.66) port 1080

(Continue reading)

Michel RIGAUD | 1 Mar 2010 12:23
Picon

resume ?

Hello

On the main page it says that resuming file transfer works on http download as well as ftp download and upload

In the faq it says Curl supports resumed transfers both ways on both FTP and HTTP.

Could you confirm that the option -C works with http upload ?

Thanks

Michel

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html
BZT | 1 Mar 2010 17:15
Favicon

For Unix/Linux/Cygwin users - bash script for downloading

I'm not exactly sure what the practice or policy is regarding 
attachments, but as I've seen status reports and whatnot pasted into 
messages to the list, I will do so for this script and leave it to those 
who want to use it to copy and edit.

SJ Wright

#!/bin/bash
#readycurl.sh -- A script to keep the 'curl -o' option handy
#when downloading from several sites or servers.
#Tested and working with:
#curl 7.20.0 (i686-pc-cygwin) libcurl/7.20.0 OpenSSL/0.9.8l zlib/1.2.3 
libidn/1.16 libssh2/1.2.2
#(ymmv)

logtime=$(date "+%d.%m.%Y-%H.%M")
logname="curlactivity-$logtime.log"
touch $logname
echo -ne "Log started at `date "+%d.%m.%Y  <at>  %H:%M:%S"`.\n\n">>$logname

while true
do
echo -ne "What is your file to be called?\n"
read theName
if [ $theName != "done" ]
then
    thisFile=$theName
    echo -ne "Where is the file?\n"
    read thisSource
    dimple=$(echo ${thisSource:0:5})
        if [ $dimple != "http:" ]
        then
            echo -ne "I'm exiting.\n" && break
        else
        GRABTIME=$(date "+%d.%m.%Y  <at>  %H:%M:%S")
        thisPlace=`echo $thisSource | rev | cut -d / -f2- | rev`
        thisName=`echo ${thisSource##*/}`
        if [ -f $logname ]; then
            curl -o "$thisFile" "$thisSource" && echo -ne "$GRABTIME": 
"$thisFile" came from "$thisPlace/" and was called "$thisName\n">> $logname
        fi
        fi
else
    echo -ne "Alright. I quit!\n" && break
fi
done
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Daniel Stenberg | 1 Mar 2010 22:43
Picon
Favicon
Gravatar

Re: ERROR 55

On Fri, 26 Feb 2010, Michel RIGAUD wrote:

> curl: (55) SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
>
> 55 says Failed sending Network data. Do you have any other explanation ?
> and the rest of the error message
> SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
> Is that from Curl, and if yes what does it mean ?

That's an error from OpenSSL, and no I don't know what it means.

> --retry <num>  does it allow to continue the transfer where it fails ? if no
> is there a specific function that will allow me to do that ?

No. --retry retries trancient errors (as documented) and that's not considered 
to be a trancient error.

--

-- 

  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Daniel Stenberg | 1 Mar 2010 22:47
Picon
Favicon
Gravatar

Re: How to use curl to upload file using scp

On Mon, 22 Feb 2010, Mangesh Kute wrote:

> I want to use scp protocol to upload file using culr tool.
> How can I do that ?

curl -T [file] scp://example.com/

> Can I specify username and password on command line while using scp via curl 
> ?

Yes.

--

-- 

  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Daniel Stenberg | 1 Mar 2010 22:49
Picon
Favicon
Gravatar

Re: .netrc information not fully recognized

On Mon, 22 Feb 2010, Jason Friedman wrote:

> spjsf <at> infodev1:~> cat .netrc
> machine den-wiki.den.ofi.com login wikiuser password myPassword

I believe the .netrc parser may not properly deal with all those on the same 
physical line. Try specifying machine, login and password on separate lines.

--

-- 

  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Doug McNutt | 1 Mar 2010 23:41
Favicon

Re: .netrc information not fully recognized

At 22:49 +0100 3/1/10, Daniel Stenberg wrote:
>On Mon, 22 Feb 2010, Jason Friedman wrote:
>
>> spjsf <at> infodev1:~> cat .netrc
>> machine den-wiki.den.ofi.com login wikiuser password myPassword
>
>I believe the .netrc parser may not properly deal with all those on the same physical line. Try specifying
machine, login and password on separate lines.

I'm showing curl 7.10.2 on Mac OS X and  7.19.5 on ubuntu Linux. Both are showing one line per host and working
fine with .netrc

But. . . The line ends are ASCII 10, UNIX style. Does the OP's .netrc use returns or CRLF pairs?

My .netrc uses tab characters between items on a line. Any whitespace is supposed to be acceptable but. . .?

--

-- 

--> A fair tax is one that you pay but I don't <--
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Barry Leslie | 3 Mar 2010 00:08

Slow connect time when doing a file upload.

Hi,

When using curl or libcurl to upload a file there seems to be a 2 second
pause after connecting before the upload starts.

I am using curl 7.16.3 on OS X 10.5.8 PPC.

If I do :
curl --upload-file afile "http://osx:8080/test"

It will take 2+ seconds, the size of the file doesn't matter.

If I do:
curl -d "xxxx" "http://osx:8080/test"

It completes immediately.

I have looked at the network using tcpdump and there seems to be a 2 second
pause before it starts to send the data. Here is the tcpdump output from:

sudo tcpdump -ttt -ni lo0 port 8080

========================================
000000 IP6 ::1.49614 > ::1.8080: S 3866292607:3866292607(0) win 65535 <mss
16324,nop,wscale 2,nop,nop,timestamp 749334800 0,sackOK,eol>
000133 IP6 ::1.8080 > ::1.49614: R 0:0(0) ack 3866292608 win 0
000321 IP 127.0.0.1.49615 > 127.0.0.1.8080: S 2844298682:2844298682(0) win
65535 <mss 16344,nop,wscale 3,nop,nop,timestamp 749334800 0,sackOK,eol>
000113 IP 127.0.0.1.8080 > 127.0.0.1.49615: S 739242953:739242953(0) ack
2844298683 win 65535 <mss 16344,nop,wscale 3,nop,nop,timestamp 749334800
749334800,sackOK,eol>
000018 IP 127.0.0.1.49615 > 127.0.0.1.8080: . ack 1 win 65535
<nop,nop,timestamp 749334800 749334800>
000019 IP 127.0.0.1.8080 > 127.0.0.1.49615: . ack 1 win 65535
<nop,nop,timestamp 749334800 749334800>
001888 IP 127.0.0.1.49615 > 127.0.0.1.8080: P 1:197(196) ack 1 win 65535
<nop,nop,timestamp 749334800 749334800>
000056 IP 127.0.0.1.8080 > 127.0.0.1.49615: . ack 197 win 65535
<nop,nop,timestamp 749334800 749334800>

!!!! 2 second wait !!!
2. 018910 IP 127.0.0.1.49615 > 127.0.0.1.8080: . 197:16529(16332) ack 1 win
65535 <nop,nop,timestamp 749334820 749334800>

000002 IP 127.0.0.1.49615 > 127.0.0.1.8080: P 16529:16581(52) ack 1 win
65535 <nop,nop,timestamp 749334820 749334800>
000128 IP 127.0.0.1.8080 > 127.0.0.1.49615: . ack 16581 win 65321
<nop,nop,timestamp 749334820 749334820>
002297 IP 127.0.0.1.49615 > 127.0.0.1.8080: . 16581:32913(16332) ack 1 win
65535 <nop,nop,timestamp 749334820 749334820>
000003 IP 127.0.0.1.49615 > 127.0.0.1.8080: P 32913:32965(52) ack 1 win
65535 <nop,nop,timestamp 749334820 749334820>

========================================

From a profile sample I took it looks like it is waiting in
CURL_socket_ready().

Can anybody explain this to me?

It only seems to have this problem when using file input.

Barry 

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Daniel Stenberg | 3 Mar 2010 13:09
Picon
Favicon
Gravatar

Re: Slow connect time when doing a file upload.

On Tue, 2 Mar 2010, Barry Leslie wrote:

> When using curl or libcurl to upload a file there seems to be a 2 second 
> pause after connecting before the upload starts.
>
> I am using curl 7.16.3 on OS X 10.5.8 PPC.

That's a very old curl version. You may just suffer from an acient bug we've 
fixed since.

> curl --upload-file afile "http://osx:8080/test"
>
> It will take 2+ seconds, the size of the file doesn't matter.

I would guess it's due to it waiting for a 100 Continue response, but I'm 
not sure.

--

-- 

  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Barry Leslie | 3 Mar 2010 16:42

Re: Slow connect time when doing a file upload.


On 3/3/10 4:09 AM, "Daniel Stenberg" <daniel <at> haxx.se> wrote:

> On Tue, 2 Mar 2010, Barry Leslie wrote:
> 
>> When using curl or libcurl to upload a file there seems to be a 2 second
>> pause after connecting before the upload starts.
>> 
>> I am using curl 7.16.3 on OS X 10.5.8 PPC.
> 
> That's a very old curl version. You may just suffer from an acient bug we've
> fixed since.
> 
>> curl --upload-file afile "http://osx:8080/test"
>> 
>> It will take 2+ seconds, the size of the file doesn't matter.
> 
> I would guess it's due to it waiting for a 100 Continue response, but I'm
> not sure.

Yes, this is the problem. The server is not responding to the HTTP 'Expect:
100-Continue" header. If you just send a string then curl does not send the
header separately and so there is no delay.

I will need to fix this in my server.

Thanks,
    Barry

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ:        http://curl.haxx.se/docs/faq.html
Etiquette:  http://curl.haxx.se/mail/etiquette.html


Gmane