<?xml version="1.0" encoding="windows-1252"?>
<node id="758861" title="Re: Parallel LWP usage" created="2009-04-20 23:35:37" updated="2009-04-20 23:35:37">
<type id="11">
note</type>
<author id="269874">
sri</author>
<data>
<field name="doctext">
&lt;a href="http://search.cpan.org/dist/Mojo/"&gt;Mojo::Client&lt;/a&gt; might be helpful.
&lt;code&gt;
use Mojo::Client;
use Mojo::Transaction;

my $client = Mojo::Client-&gt;new;

my $tx  = Mojo::Transaction-&gt;new_get('http://labs.kraih.com');
my $tx2 = Mojo::Transaction-&gt;new_get('http://mojolicious.org');
$tx2-&gt;req-&gt;headers-&gt;expect('100-continue');
$tx2-&gt;req-&gt;body('foo bar baz');

$client-&gt;process_all($tx, $tx2);

print $tx-&gt;res-&gt;code;
print $tx2-&gt;res-&gt;code;
print $tx2-&gt;res-&gt;content-&gt;file-&gt;slurp;
&lt;/code&gt;
AnyEvent::Mojo::Client is in the works too but not yet ready for prime time i think.</field>
<field name="root_node">
758739</field>
<field name="parent_node">
758739</field>
</data>
</node>
