<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>http://educacion.luisantolin.com/index.php?action=history&amp;feed=atom&amp;title=GGI_en_Perl_que_vuelca_todo_a_fichero</id>
	<title>GGI en Perl que vuelca todo a fichero - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="http://educacion.luisantolin.com/index.php?action=history&amp;feed=atom&amp;title=GGI_en_Perl_que_vuelca_todo_a_fichero"/>
	<link rel="alternate" type="text/html" href="http://educacion.luisantolin.com/index.php?title=GGI_en_Perl_que_vuelca_todo_a_fichero&amp;action=history"/>
	<updated>2026-05-12T13:44:57Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>http://educacion.luisantolin.com/index.php?title=GGI_en_Perl_que_vuelca_todo_a_fichero&amp;diff=71&amp;oldid=prev</id>
		<title>Lantolin: Página creada con «En entornos de desarrollo puede ser util tener un &quot;agujero negro&quot; que acepte todo y devuelva un HTTP 200 y que además lo escriba a un fichero local.  Ojito, que este tipo...»</title>
		<link rel="alternate" type="text/html" href="http://educacion.luisantolin.com/index.php?title=GGI_en_Perl_que_vuelca_todo_a_fichero&amp;diff=71&amp;oldid=prev"/>
		<updated>2018-03-28T18:20:41Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «En entornos de desarrollo puede ser util tener un &amp;quot;agujero negro&amp;quot; que acepte todo y devuelva un HTTP 200 y que además lo escriba a un fichero local.  Ojito, que este tipo...»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;En entornos de desarrollo puede ser util tener un &amp;quot;agujero negro&amp;quot; que acepte todo y devuelva un HTTP 200 y que además lo escriba a un fichero local.&lt;br /&gt;
&lt;br /&gt;
Ojito, que este tipo de cosa seria un agujero de seguridad enorme en cualquier entorno de internet o similar.&lt;br /&gt;
&lt;br /&gt;
Este CGI hace justo eso:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
open(OUT,&amp;quot;&amp;gt;&amp;gt;/tmp/MIB.out&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
print &amp;quot;Content-type: text/plain; charset=iso-8859-1\n\n&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
local ($buffer);&lt;br /&gt;
&lt;br /&gt;
$ENV{&amp;#039;REQUEST_METHOD&amp;#039;} =~ tr/a-z/A-Z/;&lt;br /&gt;
if ($ENV{&amp;#039;REQUEST_METHOD&amp;#039;} eq &amp;quot;POST&amp;quot;)&lt;br /&gt;
{&lt;br /&gt;
    read(STDIN, $buffer, $ENV{&amp;#039;CONTENT_LENGTH&amp;#039;});&lt;br /&gt;
}&lt;br /&gt;
else&lt;br /&gt;
{&lt;br /&gt;
    $buffer = $ENV{&amp;#039;QUERY_STRING&amp;#039;};&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
print OUT &amp;quot;BEGIN---------------------------------------------------------------------------\n&amp;quot;;&lt;br /&gt;
print OUT &amp;quot;$buffer\n&amp;quot;;&lt;br /&gt;
print OUT &amp;quot;END-----------------------------------------------------------------------------\n&amp;quot;;&lt;br /&gt;
 &lt;br /&gt;
close(OUT);&lt;br /&gt;
&lt;br /&gt;
1;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Tecnologia]]&lt;br /&gt;
[[Category:Redes]]&lt;br /&gt;
[[Category:Tips]]&lt;/div&gt;</summary>
		<author><name>Lantolin</name></author>
	</entry>
</feed>