replace 'curl' with 'wget', which apparently deals with oddball 302 redirects more...