Exploratory Community

How to make an HTTP POST request with Exploratory


Here is a simple example for an HTTP POST request with R Script Data Frame. Once you get a result, you can convert the result into a data frame.

r <- POST("https://reqbin.com/echo/post/json", accept_json())
#convert to text object using httr
result <- content(r, as="text")
#parse JSON

For the httr package details, please refer https://httr.r-lib.org/