Use curl instead of wget to avoid proxy issues

Change-Id: I01add8dfb36ede1c6ec3f27751084010c2f38a72
Signed-off-by: Mikael Barbero <mikael@eclipse.org>
diff --git a/hudson-scripts/init/1_p2.sh b/hudson-scripts/init/1_p2.sh
index fc84e06..f6801d6 100644
--- a/hudson-scripts/init/1_p2.sh
+++ b/hudson-scripts/init/1_p2.sh
@@ -47,7 +47,7 @@
 	# prevents re-downloading the p2-admin archive each time.
 	if [ ! -f "${wd}/${p2AdminArchive}" ]; then
 		LSDEBUG "Downloading p2-admin '${p2AdminURL}'"
-		wget -q --no-check-certificate ${p2AdminURL} -O - > "${wd}/${p2AdminArchive}"
+		curl -s -k -L ${p2AdminURL} > "${wd}/${p2AdminArchive}"
 	fi
 
 	# this way, we are sure to have a clean p2-admin install, without any p2-cache.