lorn / lwp-curl Goto Github PK
View Code? Open in Web Editor NEWLWP methods with libcurl kernel
Home Page: http://search.cpan.org/~lorn/LWP-Curl-0.07/lib/LWP/Curl.pm
LWP methods with libcurl kernel
Home Page: http://search.cpan.org/~lorn/LWP-Curl-0.07/lib/LWP/Curl.pm
LWP-Curl Hi, Perhaps you need to install the package libcurl-dev because, WWW::Curl::Easy need it. Enjoy. INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc LWP::Curl You can also look for information at: RT, CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=LWP-Curl AnnoCPAN, Annotated CPAN documentation http://annocpan.org/dist/LWP-Curl CPAN Ratings http://cpanratings.perl.org/d/LWP-Curl Search CPAN http://search.cpan.org/dist/LWP-Curl COPYRIGHT AND LICENCE Copyright (C) 2008 Lindolfo Rodrigues de Oliveira Neto This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Boa tarde Lorn! Preciso tirar uma dúvida com vc em relação ao módulo LWP::Curl. Será que vc pode me ajudar?
A pergunta é simples. Como eu poderia fazer autenticação usando o LWP::Curl?
4:34
You have connected
5:10
Lindolfo 'Lorn' Rodrigues
opa
tá aí?
eu não tava aqui
5:11
Andre Carneiro
opa, no cricket!
Eu fiz a autenticação direto usando o agent que tem no objeto do LWP::Curl, que é um objeto WWW::Curl::Easy.
5:11
Lindolfo 'Lorn' Rodrigues
eu confesso que nunca fiz, mas auth padrão http deve funcionar vc já tentou http://usuario:[email protected] ?
blz!
5:12
Andre Carneiro
Tem que passar o auth:BASIC tb...
5:12
Lindolfo 'Lorn' Rodrigues
ah tá
meu modulo é muito mais usado do que eu pensei
5:13
Andre Carneiro
Seria interessante ter algo parecido com o método credentials do LWP::UserAgent ??
5:13
Lindolfo 'Lorn' Rodrigues
na verdade eu vou copiar a ideia do mechanize, que é assim:
my $agent = WWW::Mechanize->new();
$agent->default_header(
Authorization => "Basic " .
MIME::Base64::encode( 'usuario' . 'senha') );
pow, vou colocar como feature agora no github, vou ver se pego no fds
5:14
Andre Carneiro
Ah sim... já facilita pra caramba...
my $lwpcurl = LWP::Curl->new();
my $curl = $lwpcurl->{agent};
$curl->setopt(CURLOPT_URL,'http://restful.painel.localhost/index.php/Restful/AddTransactionalCampaign/');
$curl->setopt(CURLOPT_USERPWD, "interNalDataInf:keo+9e_21");
$curl->setopt(CURLOPT_POST, 1);
$curl->setopt(CURLOPT_POSTFIELDS, 'auth=BASIC&message=NICE!');
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.