Erick Nuwendam | 4 Sep 2002 12:55

CURL / Firewall

Hello,

How can I implement a double logon through 
   - first a Firewall
   - secondly the remote host

when issuing a CURL FTP put command ?

thanks
erick

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

Daniel Stenberg | 4 Sep 2002 15:26
Picon
Favicon
Gravatar

Re: CURL / Firewall

On Wed, 4 Sep 2002, Erick Nuwendam wrote:

> How can I implement a double logon through
>    - first a Firewall

Well it depends on how that login works. AFAIK, there is no universal
standard for firewall logins.

>    - secondly the remote host

Again, it depends on how the login works. Is it a HTML form? Is it regular
HTTP authentication? Is it HTTPS possibly?

> when issuing a CURL FTP put command ?

Ah, you mean step two logins and uploads a file with ftp?

You need to give us more data, we won't be able to provide a good answer
otherwise!

--

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

Cadime | 4 Sep 2002 16:05
Picon
Favicon

ftp CURLE_FTP_PORT_FAILED after lots of downloads

Hi,

I am using libcurl 7.9.8 at HPUX11.

My program is getting some (many) files from a Windows NT ftp server.

After geeting 2110 files, I am getting the CURLE_FTP_PORT_FAILED error, even
after reseting the curl handle...
Other non-libcurl ftp clients are still able to download files...
Any idea???

Here it is the verbose output of the 2110th file and the 2111th one:

* Connected to [re-used] (10.44.22.26) port 21
> CWD /^M
> CWD alarmes^M
* We connect from theseus
> PORT 10,70,40,7,253,11^M
*onnected the data stream with PORT!
> TYPE I^M
> SIZE DP_32842_1_03_31.des^M
> RETR DP_32842_1_03_31.des^M
* Connection accepted from server
* Getting file with size: 2016
> De-using existing connection! (#0)
* Connected to [re-used] (10.44.22.26) port 21
> CWD /^M
> CWD alarmes^M
* We connect from theseus
> PORT 10,70,40,7,253,11^M
(Continue reading)

Daniel Stenberg | 4 Sep 2002 16:42
Picon
Favicon
Gravatar

Re: ftp CURLE_FTP_PORT_FAILED after lots of downloads

On Wed, 4 Sep 2002, Cadime wrote:

> I am using libcurl 7.9.8 at HPUX11.

That is not IPv6-enabled, right?

> After geeting 2110 files, I am getting the CURLE_FTP_PORT_FAILED error,
> even after reseting the curl handle...

Does it always fail after exactly 2110 files?

> Here it is the verbose output of the 2110th file and the 2111th one:

> > PORT 10,70,40,7,253,11^M

[snip]

> > PORT 10,70,40,7,253,12^M
> * Connected the data stream with PORT!
> > TYPE I^M
> > SIZE DP_32842_1_03_33.des^M
> > RETR DP_32842_1_03_33.des^M
> * Closing connection #0

What is the error message associated with this error? CURLE_FTP_PORT_FAILED
can be generated in quite a few places in the code so if you could dig up the
human-readable error message too, it would help a lot.

Also, I noticed that it did "PORT 10,70,40,7,253,11" twice and then the
failing one did "PORT 10,70,40,7,253,12" (increased the port number one
(Continue reading)

Cadime | 4 Sep 2002 20:32
Picon
Favicon

RE: ftp CURLE_FTP_PORT_FAILED after lots of downloads

>
>On Wed, 4 Sep 2002, Cadime wrote:
>
>> I am using libcurl 7.9.8 at HPUX11.
>
>That is not IPv6-enabled, right?
Right

>
>> After geeting 2110 files, I am getting the 
>CURLE_FTP_PORT_FAILED error,
>> even after reseting the curl handle...
>
>Does it always fail after exactly 2110 files?
No, indeed. I noticed that it fails around 2050-2150 files

>What is the error message associated with this error? 
>CURLE_FTP_PORT_FAILED
>can be generated in quite a few places in the code so if you 
>could dig up the
>human-readable error message too, it would help a lot.
The error is " Too many open files".
However, I am ensuring that I am fclose'ing every FILE* I fopen'ed.
What about libcurl?

>
>Also, I noticed that it did "PORT 10,70,40,7,253,11" twice and then the
>failing one did "PORT 10,70,40,7,253,12" (increased the port number one
>step). Does this behavior always repeat when you see this problem?
I am very sorry. Thak was a copy-paste mistake.
(Continue reading)

Daniel Stenberg | 5 Sep 2002 09:08
Picon
Favicon
Gravatar

RE: ftp CURLE_FTP_PORT_FAILED after lots of downloads

On Wed, 4 Sep 2002, Cadime wrote:

> >What is the error message associated with this error?
> >CURLE_FTP_PORT_FAILED can be generated in quite a few places in the code
> >so if you could dig up the human-readable error message too, it would help
> >a lot.

> The error is " Too many open files".
> However, I am ensuring that I am fclose'ing every FILE* I fopen'ed.
> What about libcurl?

libcurl doesn't fopen() at all, but it uses file handles for sockets etc and
I guess this might concern one of those.

But I'm not aware of any leakage of file descriptors either. Can you add some
kind of check/trace on the file descriptor usage in libcurl? The MALLOCDEBUG
define enables such ones, logged to a file. And then there's the
tests/memanalyze.pl script that analyzed such a log dump.

--

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

Bjorn Reese | 5 Sep 2002 18:21
Picon

Re: ftp CURLE_FTP_PORT_FAILED after lots of downloads

Cadime wrote:

> The error is " Too many open files".
> However, I am ensuring that I am fclose'ing every FILE* I fopen'ed.

Does fclose() return an error code? The file system may still be
busy flushing data to the files, especially if you're using NFS
or auditing.

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

Daniel Stenberg | 5 Sep 2002 19:11
Picon
Favicon
Gravatar

7.10-pre2 on windows...

Hey friends

I've recently received indications that the curl 7.10-pre2 version has some
kind of bugs that shows when run on windows.

I'd therefore like to make an extra request here that those of you who can,
get it, build it and try it. Preferably on windows, but all platforms are of
course fine to try it on.

I don't have any windows machines myself to debug this on, and I can't see
any problems on the Linux and Solaris machines I've tested 7.10-pre2 on.

--

-- 
 Daniel Stenberg -- curl related mails on curl related mailing lists please

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390

Cadime | 6 Sep 2002 13:07
Picon
Favicon

Curl.h need change ? [was ftp CURLE_FTP_PORT_FAILED after lots o f downloads]

Thanks for your answers.

I was able to find MY error.
In a very specific situation an exception was generated and the
corresponding fclose was not called.

Now, I have got another problem:
I am compiling with HP-UX aCC and I am getting an error when using curl7.9.8
headers.
I need a kind of additional check as the one that occurred  from v1.152 to
1.153 of curl.h.
But I do not know what should be the compiler flag to check !!!!

My compiler does not predefine __STDC__ neither _MSC_VER neither
__cplusplus.
It does not allow to define them either.

Any help?

Meanwhile I slightly changed the curl.h file to force it to compile the line
  #define CFINIT(name) CURLFORM_ ## name 
and it works

Ricardo Cadime

>-----Original Message-----
>From: Bjorn Reese [mailto:breese <at> mail1.stofanet.dk]
>Sent: quinta-feira, 5 de Setembro de 2002 17:22
>To: Cadime
>Cc: libcurl Mailing list
(Continue reading)

preetic | 6 Sep 2002 13:43

Space in URL

Hi all!!  

I am facing a problem regarding space in url,cause of which data is not  
being posted.  
The piece of code is as follows:  
import pycurl  
c=pycurl.init()  
c.setopt(pycurl.URL,'http://tarahaat.com/health/Healthy Motherhood')  
c.perform()  

On executing thids piece fo code..  
I get error message  
Error code 400.  
Message: Bad Request.  

can anybody help me out with this? 

  
Cheers  

Preeti Chitkara  

-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390


Gmane