<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog XYOX &#187; proxy</title>
	<atom:link href="http://xyox.info/tags/proxy/feed/" rel="self" type="application/rss+xml" />
	<link>http://xyox.info</link>
	<description>Blog personal de XYOX, Web y No Web</description>
	<lastBuildDate>Wed, 14 Sep 2011 00:41:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Creando un proxy identificandose como otro navegador</title>
		<link>http://xyox.info/2008/12/16/creando-un-proxy-identificandose-como-otro-navegador/</link>
		<comments>http://xyox.info/2008/12/16/creando-un-proxy-identificandose-como-otro-navegador/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 01:36:29 +0000</pubDate>
		<dc:creator>XYOX</dc:creator>
				<category><![CDATA[Php]]></category>
		<category><![CDATA[recursos]]></category>
		<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[cliente]]></category>
		<category><![CDATA[cURL]]></category>
		<category><![CDATA[navegador]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[Socket]]></category>

		<guid isPermaLink="false">http://xyox.info/?p=226</guid>
		<description><![CDATA[Seguramente mucha gente le dara utilidad a su manera, pero de hecho antes se usaba mucho los sockets con fsockopen, para conecciones a otros servidores y puertos, cUrl se incorporo a php, (de hecho cURL es una herramienta independiente del lenguaje), y de este modo el manejo que se hacia con sockets direcctamente se hace [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://farm4.static.flickr.com/3229/3115627519_a181eb0c75_o.jpg" alt="Creando un proxy identificandose como otro navegador - Blog XYOX" /><br />
Seguramente mucha gente le dara utilidad a su manera, pero de hecho antes se usaba mucho los sockets con fsockopen, para conecciones a otros servidores y puertos, <a href="http://es.wikipedia.org/wiki/CURL">cUrl</a> se incorporo a php, (de hecho <a href="http://es.wikipedia.org/wiki/CURL">cURL</a> es una herramienta independiente del lenguaje), y de este modo el manejo que se hacia con sockets direcctamente se hace mas sencillo.</p>
<pre class="php"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<a href="http://www.php.net/header"><span style="color: #000066;">header</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Content-type: application/octet-stream&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$url</span> = <span style="color: #ff0000;">&quot;http://www.google.com.pe/&quot;</span>;
<span style="color: #0000ff;">$useragent</span>=<span style="color: #ff0000;">&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9) Gecko/2008052906 Firefox/3.0&quot;</span>;
<span style="color: #0000ff;">$ch</span> = curl_init<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
curl_setopt<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ch</span>,CURLOPT_URL,<span style="color: #0000ff;">$url</span><span style="color: #66cc66;">&#41;</span>;
curl_setopt<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ch</span>, CURLOPT_USERAGENT, <span style="color: #0000ff;">$useragent</span><span style="color: #66cc66;">&#41;</span>;
curl_exec<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ch</span><span style="color: #66cc66;">&#41;</span>;
curl_close<span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$ch</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre>
<p>User-agent es el cliente con que se conecta al servidor, todos los navegadores, o cualkier programa que se conecta externamente, es su identificacion.</p>
<p>En este ejemplo nos estamos conectando a sitio de Google Peru , identificados como firefox 3.0 bajo Window$.</p>
<p>Saludos <img src='http://xyox.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<form id="vozme_form_b8f76df7212b1af37ec522322c46075b" method="post" name="vozme_form_b8f76df7212b1af37ec522322c46075b" target="b8f76df7212b1af37ec522322c46075b" action="http://vozme.com/text2voice.php"><input name="text" type="hidden" value="Creando un proxy identificandose como otro navegador.. 
Seguramente mucha gente le dara utilidad a su manera, pero de hecho antes se usaba mucho los sockets con fsockopen, para conecciones a otros servidores y puertos, cUrl se incorporo a php, (de hecho cURL es una herramienta independiente del lenguaje), y de este modo el manejo que se hacia con sockets direcctamente se hace mas sencillo.
&lt;?php
header&#40;&quot;Content-type: application/octet-stream&quot;&#41;;
$url = &quot;http://www.google.com.pe/&quot;;
$useragent=&quot;Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9) Gecko/2008052906 Firefox/3.0&quot;;
$ch = curl_init&#40;&#41;;
curl_setopt&#40;$ch,CURLOPT_URL,$url&#41;;
curl_setopt&#40;$ch, CURLOPT_USERAGENT, $useragent&#41;;
curl_exec&#40;$ch&#41;;
curl_close&#40;$ch&#41;;
?&gt;
User-agent es el cliente con que se conecta al servidor, todos los navegadores, o cualkier programa que se conecta externamente, es su identificacion.
En este ejemplo nos estamos conectando a sitio de Google Peru , identificados como firefox 3.0 bajo Window$.
Saludos  
" /><input name="lang" type="hidden" value="es" /><input name="gn" type="hidden" value="ml" /><input type="hidden" id="interface" name="interface" value="full" />
			<div style="margin-left:40%;">
			
				<input style="float:left;" type="image" width="40" height="40" src="http://xyox.info/wp-content/plugins/vozme/img/megaphone40x40w.gif" alt="Escucha este post" onclick="window.open('', 'b8f76df7212b1af37ec522322c46075b', 'width=600,height=370,scrollbars=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes');">
				<div style="margin-left:48px; text-align:left;"><a style="font-size:12px;" href="javascript:void(0);" onclick="window.open('', 'b8f76df7212b1af37ec522322c46075b', 'width=600,height=370,scrollbars=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes'); document.getElementById('vozme_form_b8f76df7212b1af37ec522322c46075b').submit();">Escucha<br/>este post</a></div>
			</div></form>]]></content:encoded>
			<wfw:commentRss>http://xyox.info/2008/12/16/creando-un-proxy-identificandose-como-otro-navegador/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Generando Streaming Mp3 con PHP y clase FicheroV2</title>
		<link>http://xyox.info/2008/07/15/generando-streaming-mp3-con-php-y-clase-ficherov2/</link>
		<comments>http://xyox.info/2008/07/15/generando-streaming-mp3-con-php-y-clase-ficherov2/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 20:24:33 +0000</pubDate>
		<dc:creator>XYOX</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[clase]]></category>
		<category><![CDATA[dinamico]]></category>
		<category><![CDATA[fichero]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[stream]]></category>

		<guid isPermaLink="false">http://xyox.uni.cc/?p=174</guid>
		<description><![CDATA[Una de las tantas cosas se suele utilizar son los llamados proxys, bueno esto nos puede ayudar de mucho cuando queremos generar por ejemplo musica con un titulo diferente, o quizas que cada dia de la semana la canción varie de a cuerdo a su contenido y cosas q se nos ocurra. Usaremos la clase [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img src="http://img141.imageshack.us/img141/7040/phpficheroclasssy2.jpg" alt="Generando Streaming Mp3 con PHP y clase FicheroV2 - Blog XYOX" width="469" height="201" /></p>
<p>Una de las tantas cosas se suele utilizar son los llamados <a href="http://es.wikipedia.org/wiki/Proxy">proxys</a>, bueno esto nos puede ayudar de mucho cuando queremos generar por ejemplo musica con un titulo diferente, o quizas que cada dia de la semana la canción varie de a cuerdo a su contenido y cosas q se nos ocurra.</p>
<p>Usaremos la clase <a href="http://xyox.uni.cc/2008/06/16/clase-fichero-version-20-lanzada-i-parte/">FicheroV2</a><br />
<code><br />
&lt;?php<br />
require_once "ficheroV2.class.php";<br />
$ruta = "cancion.rbs";<br />
$nombre = "Artista - Cancion.mp3";<br />
$tamanio = filesize($ruta);<br />
$fp = new Fichero($ruta,"rb");<br />
header("Content-Length: " . $tamanio);<br />
header("Content-type: audio/mpeg");<br />
header("Content-Disposition: inline; filename=\"$nombre\"");<br />
echo $fp-&gt;Gets_cont();<br />
$fp-&gt;Cierra();<br />
?&gt;</code></p>
<p>Y con eso generaremos un stream sencillo cada quien lo usa a su medida, saludos <img src='http://xyox.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<form id="vozme_form_69ac6809b4b90487be8c3471eaff4603" method="post" name="vozme_form_69ac6809b4b90487be8c3471eaff4603" target="69ac6809b4b90487be8c3471eaff4603" action="http://vozme.com/text2voice.php"><input name="text" type="hidden" value="Generando Streaming Mp3 con PHP y clase FicheroV2.. 
Una de las tantas cosas se suele utilizar son los llamados proxys, bueno esto nos puede ayudar de mucho cuando queremos generar por ejemplo musica con un titulo diferente, o quizas que cada dia de la semana la canción varie de a cuerdo a su contenido y cosas q se nos ocurra.
Usaremos la clase FicheroV2

&lt;?php
require_once &quot;ficheroV2.class.php&quot;;
$ruta = &quot;cancion.rbs&quot;;
$nombre = &quot;Artista - Cancion.mp3&quot;;
$tamanio = filesize($ruta);
$fp = new Fichero($ruta,&quot;rb&quot;);
header(&quot;Content-Length: &quot; . $tamanio);
header(&quot;Content-type: audio/mpeg&quot;);
header(&quot;Content-Disposition: inline; filename=\&quot;$nombre\&quot;&quot;);
echo $fp-&gt;Gets_cont();
$fp-&gt;Cierra();
?&gt;
Y con eso generaremos un stream sencillo cada quien lo usa a su medida, saludos  
" /><input name="lang" type="hidden" value="es" /><input name="gn" type="hidden" value="ml" /><input type="hidden" id="interface" name="interface" value="full" />
			<div style="margin-left:40%;">
			
				<input style="float:left;" type="image" width="40" height="40" src="http://xyox.info/wp-content/plugins/vozme/img/megaphone40x40w.gif" alt="Escucha este post" onclick="window.open('', '69ac6809b4b90487be8c3471eaff4603', 'width=600,height=370,scrollbars=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes');">
				<div style="margin-left:48px; text-align:left;"><a style="font-size:12px;" href="javascript:void(0);" onclick="window.open('', '69ac6809b4b90487be8c3471eaff4603', 'width=600,height=370,scrollbars=yes,location=yes,menubar=yes,resizable=yes,status=yes,toolbar=yes'); document.getElementById('vozme_form_69ac6809b4b90487be8c3471eaff4603').submit();">Escucha<br/>este post</a></div>
			</div></form>]]></content:encoded>
			<wfw:commentRss>http://xyox.info/2008/07/15/generando-streaming-mp3-con-php-y-clase-ficherov2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

