Open dbradnum opened 6 years ago
I think https://github.com/expersso/OECD/commit/728ed21abd786d2147e6aedd974e494b3bd968e3 should have fixed it. Would you mind giving it a try?
Many thanks for making the change - pleased to say this works well with our proxy config. Sorry for the delay in responding; I needed to test using my work machine, and things have been a bit hectic there!
Are you likely to push this new version up to CRAN any time soon, do you think? We can use it either way, but would be helpful to know what the likely plan is.
I'm trying to get this useful package up and running behind a corporate firewall, where we need to specify proxy server details - specifically the proxy server, and to use Windows authentication. I've tackled a few similar issues in the past, and have solutions for packages using
RCurl
orhttr
. However, I've been having trouble with theget_datasets()
function (which looks like it usescurl
, behindread_xml
).I can't see a way to pass through or pre-configure the proxy settings we need as it stands, but I might be able to see a workaround. Any suggestions or advice would be welcome!
To give specific examples:
This is also expected, since in our setting we need to specify proxyuserpwd = ":" to work with Windows authentication.
get_datasets
, I've figured out that the following adjustment works successfully:set_config(config( proxy = myProxyServer, proxyuserpwd = ":" ))
url = "https://stats.oecd.org/RestSDMX/sdmx.ashx/GetKeyFamily/all" datasets = read_xml(GET(url))