cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Connect to a port

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Sun, 7 Oct 2007 15:13:12 +0200 (CEST)

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
Received on 2007-10-07