Skip to content

see rcurl contents before they're sent?

2 messages · Mark Miller, Hasan Diwan

#
I am trying to use the R / solr integration from
https://github.com/datadolphyn/R/blob/master/r_solr_integration.R

I have the query function working, but I'm having trouble with the post
functions, which uses rcurl.

Is it possible to see the string that rcurl is going to send to a webserver
(instead of, or in addition to send it to the server?)

thanks,
Mark
#
RCurl has a verbose switch, which may be set as follows:

response <- postForm(getUpdateURL(),.opts = list(postfields = '{"delete":
{"query":"*:*"}}',httpheader = c('Content-Type' = 'application/json',Accept
= 'application/json', *verbose = TRUE*) # emphasis mine
On 20 November 2014 16:16, Mark Miller <mamillerpa at gmail.com> wrote: