Created
March 1, 2016 19:18
-
-
Save jeroen/db7c2cfd2fbf24225e2d to your computer and use it in GitHub Desktop.
Post data with GET
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(curl) | |
h <- new_handle() | |
handle_setform(h, foo = "blabla") | |
handle_setopt(h, customrequest = "GET") | |
req <- curl_fetch_memory("http://httpbin.org/get", handle = h) | |
cat(rawToChar(req$content)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment