--- AnyEvent-HTTP/HTTP.pm 2011/01/03 00:23:25 1.89 +++ AnyEvent-HTTP/HTTP.pm 2011/01/03 00:41:25 1.90 @@ -171,6 +171,10 @@ (this can be suppressed by using C for these headers in which case they won't be sent at all). +You really should provide your own C header value that is +appropriate for your program - I wouldn't be surprised if the default +AnyEvent string gets blocked by webservers sooner or later. + =item timeout => $seconds The time-out to use for various stages - each connect attempt will reset @@ -331,6 +335,7 @@ http_request GET => "https://www.google.com", + headers => { "user-agent" => "MySearchClient 1.0" }, timeout => 30, sub { my ($body, $hdr) = @_;