cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Connect to a port

From: Avron <Avron_at_galor.com>
Date: Sun, 7 Oct 2007 15:25:21 +0200

Thanks,
Passing a long did it.

-----Original Message-----
From: curl-library-bounces_at_cool.haxx.se [mailto:curl-library-bounces_at_cool.haxx.se]On Behalf Of Daniel Stenberg
Sent: Sunday, October 07, 2007 3:13 PM
To: libcurl development
Subject: Re: Connect to a port

On Sun, 7 Oct 2007, Avron wrote:5B

> ip: 192.192.192.192
> port: 221
> user name: user
> password: password

I figure you meant FTP on that address+port?

> curl_easy_setopt(curl, CURLOPT_URL, "ftp://192.192.192.192/in");

Then use a URL like "ftp://192.192.192.192:221/in"

> curl_easy_setopt(curl, CURLOPT_PORT, "221");

The CURLOPT_PORT option assumes a 'long', not a char *...

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
----------------------------------------
CONFIDENTIALITY NOTICE:
This email may contain privileged, confidential, copyrighted, or other legally protected information and is for the sole use of the intended recipient(s).The information contained in this message including any attachments is proprietary of Galor System and Software Development LTD.
The information is intended to be conveyed only to the designated recipient(s) of the message.  If the reader of this message is not the intended recipient or the responsible party to deliver it to the intended recipient, you are hereby notified that any dissemination, use, distribution or copying of this communication is strictly prohibited and may be unlawful.
If you have received this communication in error, please notify us immediately by replying to the message and immediately delete it and all copies of it from your system and destroy any hard copies.
----------------------------------------
Received on 2007-10-07