# 查询已发布
Dieser Abschnitt erläutert das Verfahren zum Erstellen und Versenden von POST-Anfragen über Crawlbase's Smart AI Proxy 是否可行。
# 表单数据
Der folgende Befehl zeigt,wie eine POST-Anfrage gesendet wird,die Folgendes enthält: 表单数据.
- 卷曲
- 红宝石
- 节点
- PHP
- 蟒蛇
- go
使用 HTTP:
curl -H 'Content-Type: application/x-www-form-urlencoded' \
-F 'param=value' \
-X POST \
-x "http://[email protected]:8012" \
-k "http://httpbin.org/anything"
使用 HTTPS:
curl -H 'Content-Type: application/x-www-form-urlencoded' \
-F 'param=value' \
-X POST \
-x "https://[email protected]:8013" \
-k "http://httpbin.org/anything"
# JSON数据
所以请发送 Sie eine POST-Anfrage, die Folgendes enthält: JSON数据,请参阅后续评论。
- 卷曲
- 红宝石
- 节点
- PHP
- 蟒蛇
- go
使用 HTTP:
curl -H "accept: application/json" \
--data '{"key1":"value1","key2":"value2"}' \
-X POST \
-x "http://[email protected]:8012" \
-k "http://httpbin.org/anything"
使用 HTTPS:
curl -H "accept: application/json" \
--data '{"key1":"value1","key2":"value2"}' \
-X POST \
-x "https://[email protected]:8013" \
-k "http://httpbin.org/anything"