Created
May 8, 2017 21:39
-
-
Save vaneves/84ad1456adad5c563995bcd7f600efa9 to your computer and use it in GitHub Desktop.
Correios
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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