summaryrefslogtreecommitdiffstats
path: root/mdkupdate
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-15 10:38:12 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-15 10:38:12 +0000
commit4644c70907e894dc0fc20c2e1f739fe2524fe56e (patch)
tree34c529eab313687ea5efc41565256ef10ef3c0ce /mdkupdate
parentaa5a7b01d64834e95c2aa29143fe89c1005ef424 (diff)
downloadmgaonline-4644c70907e894dc0fc20c2e1f739fe2524fe56e.tar
mgaonline-4644c70907e894dc0fc20c2e1f739fe2524fe56e.tar.gz
mgaonline-4644c70907e894dc0fc20c2e1f739fe2524fe56e.tar.bz2
mgaonline-4644c70907e894dc0fc20c2e1f739fe2524fe56e.tar.xz
mgaonline-4644c70907e894dc0fc20c2e1f739fe2524fe56e.zip
- add proxy support
Diffstat (limited to 'mdkupdate')
-rwxr-xr-xmdkupdate3
1 files changed, 3 insertions, 0 deletions
diff --git a/mdkupdate b/mdkupdate
index aaa4896e..86bd5535 100755
--- a/mdkupdate
+++ b/mdkupdate
@@ -149,6 +149,7 @@ sub getFromURL {
my ($link) = @_;
my $ua = LWP::UserAgent->new;
$ua->agent("MdkUpdateAgent/$VERSION" . $ua->agent);
+ $ua->env_proxy;
my $request = HTTP::Request->new(GET => $link);
my $response = $ua->request($request);
$response
@@ -175,6 +176,7 @@ sub send_config {
my $ua = LWP::UserAgent->new;
$ua->agent("MdkOnlineAgent/$VERSION" . $ua->agent);
+ $ua->env_proxy;
my $response = $ua->request(POST 'https://www.mandrakeonline.net/wizard.php',
Content_Type => 'form-data',
@@ -250,6 +252,7 @@ sub send_rpm_dif {
-s "/root/$login.$password.$box_name.$oldkey.dif" or die N("System is up to date");
my $ua = LWP::UserAgent->new;
$ua->agent("MdkOnlineAgent/$VERSION" . $ua->agent);
+ $ua->env_proxy;
my $response = $ua->request(POST "https://www.mandrakeonline.net/online_dif.php",
Content_Type => 'form-data',