cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Upload

From: Cadime <ricardo-v-cadime_at_ptinovacao.pt>
Date: Tue, 17 Dec 2002 17:42:45 -0000

Here you have the strange behaviour...

file connect.c
        rc = connect(sockfd, (struct sockaddr *)&serv_addr,
                 sizeof(serv_addr));

    if(-1 == rc) {
    int error=geterrno();
          
NOTE : rc is equal to -1 and error is 0 !!!!!!!

I wrote a small app with my upload code and it works.
However, when I integrate it in my big app, it fails...

Probably, it is my app problem :-(

Thanks, anyway
Ricardo Cadime

>-----Original Message-----
>From: Daniel Stenberg [mailto:daniel_at_haxx.se]
>Sent: terça-feira, 17 de Dezembro de 2002 13:23
>To: libcurl Mailing list
>Subject: RE: Upload
>
>
>On Mon, 16 Dec 2002, Cadime wrote:
>
>> I used the standard ftp client from HP-UX (the same machine
>I am trying to
>> use libcurl) and I managed to upload the file. However, noticing that
>> comnect time is long !!!
>
>Well, can you produce a trace/list of FTP commands from the
>working session
>and one list from the non-working session for us to compare?
>
>> How can I be sure about the error origin?
>
>1. Figure out why curl tries to connect to that port. 2.
>Figure out if your
>program is supposed to be able to connect there. 3. If all
>else fail, figure
>out why the curl code fails if it shouldn't.
>
>> >But my guess is that you're using PORT and that the server
>is giving you a
>> >private IP back (10.*) that you can't connect to.
>
>> Do you mean I can´t connect to any private address?
>
>Well, if you connect to a remote server who's offering you one
>of its private
>IP adresses, then you can't connect to it, no.
>
>--
> Daniel Stenberg -- curl, cURL, Curl, CURL. Groks URLs.
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:
>With Great Power, Comes Great Responsibility
>Learn to use your power at OSDN's High Performance Computing Channel
>http://hpc.devchannel.org/
>

-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
Received on 2002-12-17