20,22c20,22
< AUR_URL="http://aur.archlinux.org/packages.php"
< AUR_URL2="http://aur.archlinux.org/packages.php?setlang=en&K="
< AUR_URL3="http://aur.archlinux.org/packages.php?setlang=en&ID="
---
> AUR_URL="https://aur.archlinux.org/packages.php"
> AUR_URL2="https://aur.archlinux.org/packages.php?setlang=en&K="
> AUR_URL3="https://aur.archlinux.org/packages.php?setlang=en&ID="
124c124
<    echo "http://aur.archlinux.org/account.php"
---
>    echo "https://aur.archlinux.org/account.php"
135c135
< --post-file="$TMPDIR/.aurvote.postdata" http://aur.archlinux.org \
---
> --post-file="$TMPDIR/.aurvote.postdata" https://aur.archlinux.org \
148,149c148,150
< 		aurid=$(wget --quiet "${AUR_URL2}${pkgname}" -O - | \
< 		grep -m 1 ">${pkgname}\ [0-9]" | sed -e "s/^.*packages.php?ID=//" -e "s/'.*//")
---
> 		aurid=$(wget --quiet --load-cookies="$TMPDIR/.aurvote.cookies" \
> 		"${AUR_URL2}${pkgname}" -O - | grep -o -m 1 "action='/packages.php?ID=[0-9]\+" \
> 		| grep -o -m 1 "\([0-9]\+\)\{1\}")
169c170
< 		$AUR_URL -O "$TMPDIR/$pkgname"; then
---
> 		"${AUR_URL3}${aurid}" -O "$TMPDIR/$pkgname"; then