summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-07-31 07:00:22 +0200
committerErich Eckner <git@eckner.net>2019-07-31 07:00:22 +0200
commitabedb70a996b87007a0f29076e2c2bc9bed5d1a4 (patch)
tree40aae80d18abe2b713a900bf66e6958a310dc4b6
parent749f512980e7742aa34d6451de7a2c1936991229 (diff)
downloadsourceMirror-abedb70a996b87007a0f29076e2c2bc9bed5d1a4.tar.xz
mirror.php: first try with normal user-agent
-rw-r--r--mirror.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mirror.php b/mirror.php
index 9c9a052..55f18e8 100644
--- a/mirror.php
+++ b/mirror.php
@@ -70,6 +70,7 @@
passthru(
"mkdir -p '".dirname($pfad)."'; ".
"( ".
+ "curl -Ls '".$quelle."' || ".
"curl -Ls -A 'Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0' '".$quelle."' || ".
"wget -O - '".$quelle."'; ".
") | ". // oder curl!