在文档中:
http://cran.r-project.org/web/packages/httr/httr.pdf,它只说:
Further parameters, such as query, path, etc, passed on to modify_url. These parameters must be named.
然后在 modify_url 部分中,它说:
components of the url to change
还有一个例子:
# You might want to manually specify the handle so you can have multiple
# independent logins to the same website.
google <- handle("http://google.com")
GET(handle = google, path = "/")
GET(handle = google, path = "search")
path = "/"
但是(就像 R 文档中的许多示例一样,LOL!),该示例并没有说明使用vs之间的区别path = "search"
。
那么,是path
为了什么?