You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 or httr. However, I've been having trouble with the get_datasets() function (which looks like it uses curl, behind read_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 code gives a timeout as expected, since no proxy server specified
library(OECD)
dataset_list= get_datasets()
I can specify the server as follows... but then I get an HTTP 407 authentication error
This way, I can use httr::set_config to configure the full range of curl options for httr, and then pass the result of the GET into read_xml. The rest of the code behind get_datasets works as before.
Can you suggest another way of making this function work with our proxy config, or would you consider making a change so the package uses an httr-based approach? For the moment, I'll create a little helper function with the code above - but obviously I'd prefer not to maintain this separately from the package.
Thanks!
The text was updated successfully, but these errors were encountered:
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:This way, I can use
httr::set_config
to configure the full range of curl options for httr, and then pass the result of the GET into read_xml. The rest of the code behindget_datasets
works as before.Can you suggest another way of making this function work with our proxy config, or would you consider making a change so the package uses an httr-based approach? For the moment, I'll create a little helper function with the code above - but obviously I'd prefer not to maintain this separately from the package.
Thanks!
The text was updated successfully, but these errors were encountered: