[Bioc-devel] How to fetch HTTP headers using RCurl

Seth Falcon sfalcon at fhcrc.org
Wed Jul 26 22:45:33 CEST 2006

Hi all,

With Duncan's help, I figured out how to get RCurl to fetch _just_ the
HTTP headers for a URL and not actually download anything.  This is
useful, for example, to determine the size of a download.  In case
others are interested in how to do this, read on...

Here's the basic voodoo:

h <- basicTextGatherer()
junk <- getURI(url, writeheader=h$update, header=TRUE, nobody=TRUE)

+ seth

More information about the Bioc-devel mailing list