Skip to content

Instantly share code, notes, and snippets.

View jorgejr568's full-sized avatar
:atom:
Coding

Jorge Junior jorgejr568

:atom:
Coding
View GitHub Profile
<?php
$ch=curl_init();
curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,false);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
$data=http_build_query(["auth" => "0a9a8d0852dac6bf4a0c70f06ca72009","formato" => "json", "cep" => "25264-148"]);
curl_setopt($ch,CURLOPT_URL,"http://webservice.kinghost.net/web_cep.php?".$data);
$result=json_decode(curl_exec($ch));
curl_close($ch);
?>