Skip to content

Problems with getURL (RCurl) to obtain list files of an ftp directory

2 messages · Francisco Zambrano, Duncan Temple Lang

#
Hi Francisco

  The code gives me the correct results, and it works for you on a Windows machine.
So while it could be different versions of software (e.g. libcurl, RCurl, etc.),
the presence of the word "squid" in the HTML suggests to me that
your machine/network is using the proxy/caching software Squid. This intercepts
requests and caches the results locally and shares them across
local users.  So if squid has retrieved that page for an HTML target (e.g. a browser or
with a Content-Type set to text/html), it may be using that cached copy for your FTP request.

One thing I like to do when debugging RCurl calls is to add
  verbose = TRUE
to the .opts argument and then see the information about the communication.

   D.
On 10/11/12 11:37 AM, Francisco Zambrano wrote: