Le 02/04/2012 00:34, Jean-Michel Caricand a écrit : > Hello, > > I need to convert this Perl code to C++ with cxxtools. Do you have a > example ? > > Thanks, > > Jean-Michel > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Tntnet-general mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tntnet-general Ouups...
use LWP::UserAgent; my $url = 'http://localhost:8000/authors/1/bio'; my $bio = 'dieu'; my $req = HTTP::Request->new(GET => $url, HTTP::Headers->new, $bio); $req->content_type('text/plain'); $req->content_length(length $bio); my $res = LWP::UserAgent->new->request($req); print $res->status_line, "\n"; print $res->content; ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Tntnet-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tntnet-general
