Handle the temporary redirect in pycurl upload.
Add some prints.