Copiar un archivo en binario
Java
Publicado el 16 de Septiembre del 2020 por Katas (25 códigos)
3.467 visualizaciones desde el 16 de Septiembre del 2020
$ python3 file.py
(200, 'OK')
200
[('Date', 'Thu, 19 Mar 2020 07:12:22 GMT'), ('Expires', '-1'), ('Cache-Control', 'private, max-age=0'), ('Content-Type', 'text/html; charset=ISO-8859-1'), ('P3P', 'CP="This is not a P3P policy! See g.co/p3phelp for more info."'), ('Server', 'gws'), ('X-XSS-Protection', '0'), ('X-Frame-Options', 'SAMEORIGIN'), ('Set-Cookie', '1P_JAR=2020-03-19-07; expires=Sat, 18-Apr-2020 07:12:23 GMT; path=/; domain=.google.com; Secure'), ('Set-Cookie', 'NID=200=db5yd1k2NMEmhWeNBSB7eBqSDcrEU1N7M4WDCSXk_QyfurdmcX4njK8W_VWNtbq91RoeVKNJ_HA1BtvJZEJI5xgt4S5VZzC7saGyNfWeQwjumVCDAiS2Ypya6qhkz57cYXBecmjH_gmKfdVC63-na89nUCZu8ZJvlBc3beI1KdA; expires=Fri, 18-Sep-2020 07:12:22 GMT; path=/; domain=.google.com; HttpOnly'), ('Accept-Ranges', 'none'), ('Vary', 'Accept-Encoding'), ('Transfer-Encoding', 'chunked')]
$smtp->SMTPAuth = true;
$smtp->SMTPSecure = "tls";
$smtp->Host = "smtp.live.com";
$smtp->Username = "miCuenta@outlook.com";
$smtp->Password = "miPassword";
$smtp->Port = 25;
$smtp->SMTPAuth = true;
$smtp->SMTPSecure = "tls";
$smtp->Host = "smtp.gmail.com";
$smtp->Username = "miCuenta@gmail.com";
$smtp->Password = "miPassword";
$smtp->Port = 587;
$smtp->SMTPAuth = true;
$smtp->SMTPSecure = "ssl";
$smtp->Host = "smtp.mail.yahoo.com";
$smtp->Username = "miCuenta@yahoo.com";
$smtp->Password = "miPassword";
$smtp->Port = 465;