<div dir="ltr">O importante é que o problema foi resolvido.<br><br>Eu não entendi isso<br><br><b>$ENV{HOME}/.cookies.txt</b><br>Se alguém pudesse explicar.<br>Obrigado<br><br><div class="gmail_quote">2008/9/15 Luis Motta Campos <span dir="ltr">&lt;<a href="mailto:luismottacampos@yahoo.co.uk">luismottacampos@yahoo.co.uk</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">Daniel de Oliveira Mantovani wrote:<br>
</div><div class="Ih2E3d">&gt; Também não está funcionando, tem que por mais informações que nem a do Eden<br>
&gt; pois acima.<br>
&gt; use LWP::UserAgent;<br>
&gt; my $ua = LWP::UserAgent-&gt;new;<br>
&gt; $ua-&gt;timeout(10);<br>
&gt; $ua-&gt;cookie_jar({ &#39;JSESSIONID&#39; =&gt; &#39;A898046DD481350D04CEDA944EAEF7DF&#39; });<br>
&gt; my $response = $ua-&gt;get(&quot;$url&quot;);<br>
&gt; my $conteudo = $response-&gt;content;<br>
&gt;<br>
&gt; Acho que precisa do servidor, mas algumas coisas, eu olhei na Internet e não<br>
&gt; achei nada para por as opções.<br>
<br>
</div><a href="http://search.cpan.org/%7Egaas/libwww-perl-5.814/lib/LWP/UserAgent.pm" target="_blank">http://search.cpan.org/~gaas/libwww-perl-5.814/lib/LWP/UserAgent.pm</a><br>
<br>
RTFM:<br>
<br>
<br>
------ BEGIN LWP::UserAgent Documentation -----<br>
<div class="Ih2E3d">$ua-&gt;cookie_jar( $cookie_jar_obj )<br>
<br>
 &nbsp; &nbsp;Get/set the cookie jar object to use. The only requirement is that<br>
the cookie jar object must implement the extract_cookies($request) and<br>
add_cookie_header($response) methods. These methods will then be invoked<br>
by the user agent as requests are sent and responses are received.<br>
Normally this will be a HTTP::Cookies object or some subclass.<br>
<br>
</div> &nbsp; &nbsp;The default is to have no cookie_jar, i.e. never automatically add<br>
&quot;Cookie&quot; headers to the requests.<br>
<br>
 &nbsp; &nbsp;Shortcut: If a reference to a plain hash is passed in as the<br>
$cookie_jar_object, then it is replaced with an instance of<br>
HTTP::Cookies that is initialized based on the hash. This form also<br>
automatically loads the HTTP::Cookies module. It means that:<br>
<br>
 &nbsp; &nbsp; &nbsp;$ua-&gt;cookie_jar({ file =&gt; &quot;$ENV{HOME}/.cookies.txt&quot; });<br>
<br>
 &nbsp; &nbsp;is really just a shortcut for:<br>
<br>
 &nbsp; &nbsp; &nbsp;require HTTP::Cookies;<br>
<div class="Ih2E3d"> &nbsp; &nbsp; &nbsp;$ua-&gt;cookie_jar(HTTP::Cookies-&gt;new(file =&gt;<br>
</div>&quot;$ENV{HOME}/.cookies.txt&quot;));<br>
------ END LWP::UserAgent Documentation -----<br>
<br>
O módulo que você está procurando é o HTTP::Cookie.<br>
<div><div></div><div class="Wj3C7c"><br>
Putamplexos.<br>
--<br>
Luis Motta Campos is a software engineer,<br>
Perl Programmer, foodie and photographer.<br>
_______________________________________________<br>
SaoPaulo-pm mailing list<br>
<a href="mailto:SaoPaulo-pm@pm.org">SaoPaulo-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/saopaulo-pm" target="_blank">http://mail.pm.org/mailman/listinfo/saopaulo-pm</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Daniel de Oliveira Mantovani<br>&quot;A sede pelo aprendizado é insaciável&quot;<br><a href="http://mantovanihouse.blogspot.com/">http://mantovanihouse.blogspot.com/</a><br>
------------------------------------------------------------<br>
</div>