6 |
use warnings; |
use warnings; |
7 |
|
|
8 |
my $debug = 0; |
my $debug = 0; |
9 |
|
my $proxy = 0; |
10 |
my $config_file = '/etc/urpmi-proxy.conf'; |
my $config_file = '/etc/urpmi-proxy.conf'; |
11 |
|
|
12 |
# config defaults |
# config defaults |
294 |
$curl->setopt(CURLOPT_TIMEVALUE, $modified_since); |
$curl->setopt(CURLOPT_TIMEVALUE, $modified_since); |
295 |
} |
} |
296 |
$curl->setopt(CURLOPT_USERAGENT, $user_agent) if $user_agent; |
$curl->setopt(CURLOPT_USERAGENT, $user_agent) if $user_agent; |
297 |
|
$curl->setopt(CURLOPT_PROXY, $proxy) if $proxy; |
298 |
$curl->setopt(CURLOPT_CONNECTTIMEOUT, $connect_timeout); |
$curl->setopt(CURLOPT_CONNECTTIMEOUT, $connect_timeout); |
299 |
$curl->setopt(CURLOPT_FTP_RESPONSE_TIMEOUT, $ftp_response_timeout); |
$curl->setopt(CURLOPT_FTP_RESPONSE_TIMEOUT, $ftp_response_timeout); |
300 |
$curl->setopt(CURLOPT_LOW_SPEED_LIMIT, $max_stall_speed); |
$curl->setopt(CURLOPT_LOW_SPEED_LIMIT, $max_stall_speed); |