tests/testthat/test-ssl.R

context("SSL")

test_that("SSL certificates verified as expected", {
  skip_on_cran()
  expect_equal(status_code(GET("https://google.com")), 200L)
  expect_equal(status_code(GET("https://firefox.com")), 200L)
})

Try the httr package in your browser

Any scripts or data that you put into this service are public.

httr documentation built on Aug. 15, 2023, 9:08 a.m.