You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would start by looking into the libcurl documentation here: http://curl.haxx.se/libcurl/c/curl_easy_setopt.html Also see if you can find some examples in the C API. it should translate to the Ruby API fairly close... and from there I would look in ext/curb_easy.c
I've have not tried connecting using the Ruby API via NLST - so it's possible we might need to make some changes.
Hi,
I am using curb to execute NLST command on a remote ftp server through a http proxy server. Proxy tunneling is enabled.
require
require 'rubygems'
require 'curb'
configuration
curl_handle.url="ftp://some_ftp_site:21"
curl_handle.userpwd="user:pass"
curl_handle.proxy_url="http://some_proxy:80"
curl_handle.verbose = true
curl_handle.ftp_commands=["PASV","NLST"]
curl_handle.proxy_tunnel=(true)
perform
curl_handle.perform
I am getting the following error,
Output:
< HTTP/1.0 200 Connection established
<
Proxy replied OK to CONNECT request
Connected to port 80 (#0)
< 220 Welcome to kernel.org
Can anybody help?
Thanks,
Rushi
The text was updated successfully, but these errors were encountered: