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

Why can't we see this in urlchecker #26

Open
gaborcsardi opened this issue Aug 17, 2022 · 1 comment
Open

Why can't we see this in urlchecker #26

gaborcsardi opened this issue Aug 17, 2022 · 1 comment
Labels
feature a feature request or enhancement

Comments

@gaborcsardi
Copy link
Member

gaborcsardi commented Aug 17, 2022

❯ options("HTTPUserAgent" = "R (4.2.1 aarch64-apple-darwin20 aarch64 darwin20)")
❯ download.file("https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts", tempfile())
trying URL 'https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts'
Error in download.file("https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts",  :
  cannot open URL 'https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts'
In addition: Warning message:
In download.file("https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts",  :
  cannot open URL 'https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts': HTTP status was '403 Forbidden'
❯ curlGetHeaders("https://support.rstudio.com/hc/en-us/articles/206382178-Customizing-Keyboard-Shortcuts")
 [1] "HTTP/2 403 \r\n"

[...]

This is with the default user agent header, which R "helpfully" replaces with libcurl/....

@hadley
Copy link
Member

hadley commented Aug 17, 2022

Alternatively should we try and get CRAN to change the UA they use for these checks?

@gaborcsardi gaborcsardi added the feature a feature request or enhancement label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants