Git Product home page Git Product logo

lwp-curl's Introduction

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.

lwp-curl's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

garu neilb

lwp-curl's Issues

Basic Authentication

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!');

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.