Take the tour ×  I've got a script that curls a site using a
specific cookie value in a cookie file. When I run this on my
local system, the server returns the same value to my cookie
jar, as per my expectations. When I run this same script from
another physical host, I get the exact same expected result.
However, when I run the script from an ec2 instance, I do not
get the same value returned to my cookie jar.  The two physical
machines run Ubuntu 11.04 while the ec2 VM runs 11.10, and the
curl version on at least one of the working systems is 7.21.3.
On the system where this script fails, the curl version is
7.21.6, though I would be surprised if it were an OS or curl
version problem. That said, I don't have any other idea what
would be causing this script to fail. Can anyone shed some light
on this for me? Here is the curl command from the script:  curl
--connect-timeout 3 --silent --cookie /home/ubuntu/cookiefile
--cookie-jar /home/ubuntu/cookiejarfile
http://www.site.com/htmlpage.html > /dev/null  share|