- or download this
$magic->set_request_header('User-Agent', 'MyBot/0.1');
$magic->User_Agent('MyBot/0.1'); # same as above
- or download this
$magic->user_agent->cookie_jar($cookies);
- or download this
Web::Magic->new('http://example.com/new-document')
->POST($xmldom)
->{entry}{id};
- or download this
my @entries =
Web::Magic->new('http://example.com/new-document')
->POST({ title => "Hello", foo => 1 })
->entries;
print $entries[0]->id;