Last chance! 50% off unlimited learning
Sale ends in
url_success(...)
TRUE
if the request succeeds
(status in the 200s), FALSE otherwise
. See
http://en.wikipedia.org/wiki/Http_status_codes
for more information on http status codes.content
,
parsed_content
, text_content
;
http_error
, stop_for_status
,
warn_for_status
; http_status
;
response
; url_ok
url_success("http://www.google.com")
url_success("http://httpbin.org/status/200")
url_success("http://httpbin.org/status/201")
url_success("http://httpbin.org/status/300")
Run the code above in your browser using DataLab