Skip to content
登录 注册

PUT 请求

通过将请求正文发送到 Web Scraping API,并使用 api_keyurl 作为查询参数,将 PUT 请求转发到目标 URL。使用此功能可驱动需要 PUT 的 REST 端点。

PUT https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=<TARGET_URL>
ParameterTypeRequiredDescription
api_keystringyes您的 Web Scraping API 密钥
urlstringyes要 PUT 到的目标 URL

请求正文将按原样转发到目标 URL。

Terminal window
curl -X PUT "https://scrape.shifter.io/v1?api_key=YOUR_API_KEY&url=https%3A%2F%2Fhttpbin.org%2Fput" \
-H "Content-Type: application/json" \
--data '{"foo":"bar"}'
{
"args": {},
"data": "{\"foo\":\"bar\"}",
"headers": {
"Content-Type": "application/json",
"Host": "httpbin.org"
},
"json": { "foo": "bar" },
"origin": "185.162.168.36",
"url": "https://httpbin.org/put"
}