Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

invalid urls in download_CGLS_data() #4

Open
itati01 opened this issue Nov 29, 2022 · 0 comments
Open

invalid urls in download_CGLS_data() #4

itati01 opened this issue Nov 29, 2022 · 0 comments

Comments

@itati01
Copy link

itati01 commented Nov 29, 2022

Hi,

I just tested RCGLS::download_CGLS_data() and readLines(con) returned an error: invalid url. This happens when the user and/or password contains special characters like "@" or "#" which have to be percent-encoded. I suggest to change url <- paste0("https://", paste(username, password, sep = ":"), product.link) to url <- paste0("https://", paste(URLencode(username), URLencode(password), sep = ":"), product.link).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant