Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTTP::Cookies->new no longer working 1

Status
Not open for further replies.

mikelawrence

Programmer
Sep 19, 2001
68
GB
I've inherited some code that parses some pages on a website, a new version of that website went up and now my code no longer downloads a simple home page. I think i've narrowed the problem to 2 lines of code which are

$cjar=HTTP::Cookies->new (file=>"../cookies/cookies.txt", autosave=>1, ignore_discard=>0) ;

$uat->cookie_jar($cjar) ;

I'm getting a message cannot call method "cookie_jar" on an undefined value which I guess means that the HTTP::Cookies->new has failed.

Anyone any ideas? Any help would be much appreciated.

Thanks

Mike
 
The error with the "cookie_jar" method is talking about the object "$uat", not the HTTP::Cookie object $cjar. I don't know what $uat is, but that is where you should look for your problem.

- Miller
 
You are exactly right, i still have a problem but was looking in the wrong place - thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top