Skip to content

Instantly share code, notes, and snippets.

@vaneves
Created May 8, 2017 21:39
Show Gist options
  • Save vaneves/84ad1456adad5c563995bcd7f600efa9 to your computer and use it in GitHub Desktop.
Save vaneves/84ad1456adad5c563995bcd7f600efa9 to your computer and use it in GitHub Desktop.
Correios
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Redirecionador de Rastreio dos Correios</title>
</head>
<?php if(isset($_GET['codigo'])): ?>
<body onload="document.getElementById('form').submit()">
<form id="form" method="post" action="http://www2.correios.com.br/sistemas/rastreamento/resultado_semcontent.cfm">
<input type="hidden" name="Objetos" value="<?= $_GET['codigo'] ?>">
</form>
<p>Aguarde...</p>
</body>
<?php else: ?>
<body>
<p>Informe o parâmetro "codigo". Por exemplo https://vaneves.com/correios/<b>?codigo=</b>AA012345678BB</p>
</body>
<?php endif ?>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment