Answers for "post form data using curl php"

PHP
0

curl post form

curl -X POST -F 'username=davidwalsh' -F 'password=something' http://domain.tld/post-to-me.php
Posted by: Guest on September-24-2021
0

curlopt_postfields php example

<?php

$cURLConnection = curl_init();

curl_setopt($cURLConnection, CURLOPT_URL, 'https://hostname.tld/phone-list');
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);

$phoneList = curl_exec($cURLConnection);
curl_close($cURLConnection);

$jsonArrayResponse - json_decode($phoneList);
Posted by: Guest on March-02-2020

Browse Popular Code Answers by Language