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:
> 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
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
OpenPGP: https://hasan.d8u.us/gpg.key
Sent from my mobile device
Envoy? de mon portable
[[alternative HTML version deleted]]