--- AnyEvent-HTTP/HTTP.pm 2011/01/12 03:30:05 1.95 +++ AnyEvent-HTTP/HTTP.pm 2011/02/16 16:34:34 1.101 @@ -48,7 +48,7 @@ use base Exporter::; -our $VERSION = '2.02'; +our $VERSION = '2.03'; our @EXPORT = qw(http_get http_post http_head http_request); @@ -531,7 +531,7 @@ \G\s* (?: expires \s*=\s* ([A-Z][a-z][a-z]+,\ [^,;]+) - | ([^=;,[:space:]]+) (?: \s*=\s* (?: "((?:[^\\"]+|\\.)*)" | ([^=;,[:space:]]*) ) )? + | ([^=;,[:space:]]+) (?: \s*=\s* (?: "((?:[^\\"]+|\\.)*)" | ([^;,[:space:]]*) ) )? ) }gcxsi ) { @@ -715,7 +715,7 @@ my $timeout = $arg{timeout} || $TIMEOUT; my ($uscheme, $uauthority, $upath, $query, undef) = # ignore fragment - $url =~ m|(?:([^:/?#]+):)?(?://([^/?#]*))?([^?#]*)(?:(\?[^#]*))?(?:#(.*))?|; + $url =~ m|^([^:]+):(?://([^/?#]*))?([^?#]*)(?:(\?[^#]*))?(?:#(.*))?$|; $uscheme = lc $uscheme; @@ -1334,8 +1334,8 @@ =head2 HTTP/1.1 FILE DOWNLOAD -Downloading files with HTTP cna be quite tricky, especially when something -goes wrong and you want tor esume. +Downloading files with HTTP can be quite tricky, especially when something +goes wrong and you want to resume. Here is a function that initiates and resumes a download. It uses the last modified time to check for file content changes, and works with many