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

set user agent #82

Merged
merged 7 commits into from
Aug 14, 2023
Merged

set user agent #82

merged 7 commits into from
Aug 14, 2023

Conversation

sbfnk
Copy link
Collaborator

@sbfnk sbfnk commented Jul 27, 2023

Fixes #70

Seems to work

GET(
    "http://httpbin.org/user-agent",
    config = config(
      followlocation = 1,
      useragent = paste0(
        "https://github.com/epiforecasts/socialmixr R package socialmixr/v.",
        packageVersion("socialmixr")
      )
    )
  )
Response [http://httpbin.org/user-agent]
  Date: 2023-07-27 09:03
  Status: 200
  Content-Type: application/json
  Size: 98 B
{
  "user-agent": "https://github.com/epiforecasts/socialmixr R package socialmi...
}

@sbfnk sbfnk requested review from Bisaloo July 27, 2023 09:30
R/download_survey.r Outdated Show resolved Hide resolved
R/download_survey.r Outdated Show resolved Hide resolved
@sbfnk sbfnk force-pushed the set-user-agent branch 2 times, most recently from 28d2fe9 to f22eff4 Compare July 28, 2023 09:42
@sbfnk sbfnk merged commit 29dc178 into main Aug 14, 2023
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

Successfully merging this pull request may close these issues.

Add custom user agent for socialmixr
2 participants