[SP-pm] Deveria Funcionar?

Daniel de Oliveira Mantovani daniel.oliveira.mantovani at gmail.com
Sun Sep 14 11:38:10 PDT 2008


Obrigados, mas não consegui pegar as informações do site( os cookies ) já
tinha tentando antes, com outro script.

2008/9/14 Nelson Ferraz <nferraz em gmail.com>

> Um dos primeiros resultado da pesquisa por "cookie_jar" no Google retornou:
>
> http://www.infocopter.com/perl/CGI/lwpcookies.html
>
> 1.2.1 How to cgi post arguments and Cookies?
>
> my $ua = LWP::UserAgent->new(agent =>
>        'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; T312461)' ,
>        'cookie_jar' => {file => "lwpcookies.txt", autosave => 1}
> );
>
> my %tags = ();
> $tags{'foo'  } = 'barfoo';
> $tags{'bar'  } = 'foobar';
>
> my $resp = $ua->request(
>        POST 'http://www.example.org/script_that_plays_with_cookies.cgi' ,
>        Content_Type  => 'application/x-www-form-urlencoded' ,
>        Content       => [ %tags ]
> );
>
>
> Espero que seja útil.
> _______________________________________________
> SaoPaulo-pm mailing list
> SaoPaulo-pm em pm.org
> http://mail.pm.org/mailman/listinfo/saopaulo-pm
>



-- 
Daniel de Oliveira Mantovani
"A sede pelo aprendizado é insaciável"
http://mantovanihouse.blogspot.com/
------------------------------------------------------------
-------------- Pr?xima Parte ----------
Um anexo em HTML foi limpo...
URL: <http://mail.pm.org/pipermail/saopaulo-pm/attachments/20080914/9c330dd1/attachment.html>


More information about the SaoPaulo-pm mailing list