Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

curl outline in laravel

$endpoint = "http://my.domain.com/test.php";
$client = new GuzzleHttpClient();
$id = 5;
$value = "ABC";

$response = $client->request('GET', $endpoint, ['query' => [
    'key1' => $id, 
    'key2' => $value,
]]);

$statusCode = $response->getStatusCode();
$content = $response->getBody();
 
PREVIOUS NEXT
Tagged: #curl #outline #laravel
ADD COMMENT
Topic
Name
6+9 =