{"action":"created","issue":{"url":"https://api.github.com/repos/mingjerli/IMFData/issues/16","repository_url":"https://api.github.com/repos/mingjerli/IMFData","labels_url":"https://api.github.com/repos/mingjerli/IMFData/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/mingjerli/IMFData/issues/16/comments","events_url":"https://api.github.com/repos/mingjerli/IMFData/issues/16/events","html_url":"https://github.com/mingjerli/IMFData/issues/16","id":331241674,"node_id":"MDU6SXNzdWUzMzEyNDE2NzQ=","number":16,"title":"Please add an option to pass a custom proxy server to httr::GET","user":{"login":"lbrandt","id":5411565,"node_id":"MDQ6VXNlcjU0MTE1NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5411565?v=4","gravatar_id":"","url":"https://api.github.com/users/lbrandt","html_url":"https://github.com/lbrandt","followers_url":"https://api.github.com/users/lbrandt/followers","following_url":"https://api.github.com/users/lbrandt/following{/other_user}","gists_url":"https://api.github.com/users/lbrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/lbrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbrandt/subscriptions","organizations_url":"https://api.github.com/users/lbrandt/orgs","repos_url":"https://api.github.com/users/lbrandt/repos","events_url":"https://api.github.com/users/lbrandt/events{/privacy}","received_events_url":"https://api.github.com/users/lbrandt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-11T15:36:45Z","updated_at":"2018-06-13T13:42:55Z","closed_at":"2018-06-13T13:42:55Z","author_association":"NONE","body":"At my work, I cannot make GET() calls using the default settings. I need to inquire the Internet Explorer proxy settings via curl::ie_get_proxy_for_url() and set it with httr::use_proxy() in order to make it work. Would it be possible to implement the option to pass a specific proxy to the GET() functions within the code?\r\n\r\nI am imagining something like this:\r\n\r\ndata = CompactDataMethod(databaseID, queryfilter, start, end, **proxy = \"custom_proxy\"**)\r\n\r\nSuch that within CompactDataMethod, GET() is called with the config use_proxy = custom_proxy.\r\n\r\nDo you have any comments or alternative solutions?"},"comment":{"url":"https://api.github.com/repos/mingjerli/IMFData/issues/comments/396941779","html_url":"https://github.com/mingjerli/IMFData/issues/16#issuecomment-396941779","issue_url":"https://api.github.com/repos/mingjerli/IMFData/issues/16","id":396941779,"node_id":"MDEyOklzc3VlQ29tbWVudDM5Njk0MTc3OQ==","user":{"login":"lbrandt","id":5411565,"node_id":"MDQ6VXNlcjU0MTE1NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/5411565?v=4","gravatar_id":"","url":"https://api.github.com/users/lbrandt","html_url":"https://github.com/lbrandt","followers_url":"https://api.github.com/users/lbrandt/followers","following_url":"https://api.github.com/users/lbrandt/following{/other_user}","gists_url":"https://api.github.com/users/lbrandt/gists{/gist_id}","starred_url":"https://api.github.com/users/lbrandt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbrandt/subscriptions","organizations_url":"https://api.github.com/users/lbrandt/orgs","repos_url":"https://api.github.com/users/lbrandt/repos","events_url":"https://api.github.com/users/lbrandt/events{/privacy}","received_events_url":"https://api.github.com/users/lbrandt/received_events","type":"User","site_admin":false},"created_at":"2018-06-13T13:42:55Z","updated_at":"2018-06-13T13:42:55Z","author_association":"NONE","body":"Actually, nevermind. One can set a global proxy server to be used in all subsequent GET() calls via httr::set_config(config = use_proxy()). Or wrap individual function calls with httr::with_config(), e.g.:\r\n\r\ndata = **httr::with_config(config = use_proxy()**, CompactDataMethod(databaseID, queryfilter, start, end))\r\n\r\nI was not aware of this. Anyway, thank you for making this package."}}
{"actor":{"display_login":"lbrandt"}}