Thanks again.
[perl]
my $response = $ua->request($req);
if ($response->is_error()) { print "Error!"; }
else {
# Everything's ok, do stuff here
}
[/perl]
The cookie stuff is a bit more complicated - if you envisage running into problems with them, would it not be an idea to turn things on their head? Publish info on your own site, and have the remote sites pull the info with a simple bit of PHP (or whatever) code?