>>Ahhh I had a problem like that also once. Try >>$ua->cookie_jar(HTTP::Cookies->new(file => "lwpcookies.txt", >> autosave => 1, ignore_discard => 1)); >> >>I believe its the autodiscard that stops it working. >> > > Do you have any concrete examples where 'ignore_discard' is needed? > Perhaps there is some bug that needs fixing. > > --Gisle > >
Umm err I got around the issue completely by doing something totally different so I don't promise that this is correct. However as I recall searches at http://www4.ncbi.nlm.nih.gov/PubMed/ got their knickers in a twist without the ignore_discard flag. The problem I was having was that I was trying to get the server to do the search and then return the results as XML to me (probably any result other than HTML would work) which reqired a certain amount of cookie exchange of cookies that were not to be kept after the end of the session. If Tusar can give his example it might be better because this one involves posting some rather complicated forms. I need to go back and revisit this anyway so you will get a suitable snippet of problem code (if there is in fact a problem) in the fairly near future but not in the next day or so. Francis -- Francis Turner, CIO Juelich Enzyme Products Gmbh http://www.juelich-enzyme.com/ +49-173-291-7278 In just two days, tomorrow will be yesterday.
