# Anfrage veröffentlichen
Dieser Abschnitt erläutert das Verfahren zum Erstellen und Versenden von POST-Anfragen über Crawlbase's Smart Proxy Bedienung.
# Form Data
Der folgende Befehl zeigt, wie eine POST-Anfrage gesendet wird, die Folgendes enthält: Formulardaten.
- curl
- ruby
- node
- php
- python
- go
Using 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"
Using 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 Data
So senden Sie eine POST-Anfrage, die Folgendes enthält: JSON-Daten, siehe nachfolgenden Befehl.
- curl
- ruby
- node
- php
- python
- go
Using HTTP:
curl -H "accept: application/json" \
--data '{"key1":"value1","key2":"value2"}' \
-X POST \
-x "http://[email protected]:8012" \
-k "http://httpbin.org/anything"
Using HTTPS:
curl -H "accept: application/json" \
--data '{"key1":"value1","key2":"value2"}' \
-X POST \
-x "https://[email protected]:8013" \
-k "http://httpbin.org/anything"