Help us understand the problem. What is going on with this article?

R の http クライアントの使い方 (Post)

次のページを参考にしました。
httr quickstart guide

http_post.R
# ---------------------------------------------------------
#   http_post.R
#
#               Mar/07/2018
#
# ---------------------------------------------------------
write("*** 開始 ***", stderr())
library (httr)
rr <- POST("https://httpbin.org/post", body = list(user = "jiro", password="123456"))
print ("---------------------")
http_status(rr)
print ("---------------------")
str(content(rr))
print ("---------------------")
rr
write("*** 終了 ***", stderr())
# ---------------------------------------------------------

実行コマンド

Rscript --no-restore --no-save http_post.R

次のバージョンで確認しました。

$ Rscript --version
R scripting front-end version 4.0.0 (2020-04-24)

Get の例はこちら
R の http クライアントの使い方 (Get)

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away