lwp/perl keep_alive..

2004-06-09 Thread bruce
i have the following sample.. any idea as to why it's not correctly performing the keep_alive function.. use LWP::UserAgent; use HTTP::Request; use HTTP::Cookies; use LWP::ConnCache; use WWW::Mechanize; $ua = new LWP::User

Automated Site Backups

2004-06-09 Thread Tom Jones
Hi all, My web hosting company provides a web interface for backing up my site. I'd like to create a script (that is run from a shell) that automates this process. So I have come up with the code below. I created a code base by using a proxy (as detailed in the book Spidering Hacks) to record m

libwww questions/issue..

2004-06-09 Thread bruce
hi... got a bit of a problem/lack of understanding... the following url works in a browser window. it can be selected, and the appropriate page appears... http://soc.our.psu.edu/soc/act_main_search.cfm?Semester=FALL%202004&CrseLoc= AA%3A%3AAltoona%20Campus&CECrseLoc=&CourseAbbrev=0&CrseAlpha=a%2

Re: HTTP::Message, setting content with a ref

2004-06-09 Thread Joshua Hoblitt
On Wed, 9 Jun 2004, Gisle Aas wrote: > This is the patch I ended up with. It is likely to be part of the > next LWP release. It looks good. I especially like the way _stale_content works. I'll try to do some memory profiling with/without the patch in the next few days. Cheers, -J --

Re: HTTP::Message, setting content with a ref

2004-06-09 Thread Gisle Aas
Joshua Hoblitt <[EMAIL PROTECTED]> writes: > I would like the ability to set the "content" of an HTTP::Message > object by passing in a ref to scalar. This would be a 1 x content > savings of memory, which can be significant for large messages. > > This would require some re-pluming so that $mes

HTTP::Message, setting content with a ref

2004-06-09 Thread Joshua Hoblitt
Hi Folks, I would like the ability to set the "content" of an HTTP::Message object by passing in a ref to scalar. This would be a 1 x content savings of memory, which can be significant for large messages. This would require some re-pluming so that $mess->{_content} becomes a ref to scalar (i