# Demande de publication
Cette section explique la procédure de création et d'envoi de requêtes POST via Crawlbase's Smart Proxy après-vente.
# Form Data
La commande ci-dessous montre comment envoyer une requête POST qui transporte données de formulaire.
- 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
Pour envoyer une requête POST qui inclut Données JSON, reportez-vous à la commande suivante.
- 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"