I initialized the agent variable, but it still doesn't work. I was just playing around and wondering whether cookies were the reason that it wasn't working and accidentally posted it to perlmonks. Anything else that you see that might cause it not to work? Do i have to use cookiejar?