Skip to content

invalid urls in download_CGLS_data() #4

@itati01

Description

@itati01

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions