cURL / Mailing Lists / curl-library / Single Mail


RE: Connect to a port

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

Passing a long did it.

-----Original Message-----
From: []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:
> port: 221
> user name: user
> password: password

I figure you meant FTP on that address+port?

> curl_easy_setopt(curl, CURLOPT_URL, "");

Then use a URL like ""

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

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

  Commercial curl and libcurl Technical Support:
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