search for: headerfunct

Displaying 3 results from an estimated 3 matches for "headerfunct".

2010 Nov 23
0
Catching a RCurl error?
Hi all, I'm running a complex script which accesses the internet, and sometimes it stops with the error: Error in curlPerform(url = url, headerfunction = header$update, curl = curl, > : Failure when receiving data from the peer Is there a way to make the script "wait" longer, or not crash when this error happens? (I'm wondering if this should be done in the level of tryCatch, or by playing with some parameter in the RCur...
2011 Feb 11
0
RCurl - HTTP request of header ONLY
...mple. Here's what I tried: FIRST TRY txt <- getURL("http://www.something.com/", verbose=TRUE, header=TRUE) cat(txt) This gives me header AND content. SECOND TRY headers <- basicTextGatherer() txt <- getURL("http://www.something.com/", header=TRUE, trace=TRUE, headerfunction=headers$update) cat(headers$value()) This gives me the header, but the content is also requested and sent to 'txt'. I was looking for a RCurl option like 'head', but only found 'headerdata', which I assumed is not what I want. Then I also tried to understand what the in...
2010 Nov 23
0
[R] Catching a RCurl error?
...endet: Dienstag, 23. November 2010 14:18 > An: r-help at r-project.org > Betreff: [R] Catching a RCurl error? > > Hi all, > > I'm running a complex script which accesses the internet, and sometimes > it > stops with the error: > > Error in curlPerform(url = url, headerfunction = header$update, curl = > curl, > > : > > Failure when receiving data from the peer > > > Is there a way to make the script "wait" longer, or not crash when this > error happens? > > (I'm wondering if this should be done in the level of tryCa...