curl object moved here error, bash

Posted by adam n on Stack Overflow See other posts from Stack Overflow or by adam n
Published on 2010-03-31T19:01:33Z Indexed on 2010/03/31 19:03 UTC
Read the original article Hit count: 609

Filed under:
|

I'm trying to download an html file with curl in bash. When I download it manually, it works fine. However, when i try and run my script through crontab, the output html file is very small and just says "Object moved to here." with a broken link. Does this have something to do with the sparse environment the crontab commands run it? I found this question:

http://stackoverflow.com/questions/1279340/php-ssl-curl-object-moved-error

but i'm using bash, not php. What are the equivalent command line options or variables to set to fix this problem in bash?

(I want to do this with curl, not wget)

© Stack Overflow or respective owner

Related posts about curl

Related posts about bash