WWW::Mech & Referrer header

"Peteris Krumins [Newsgroups]" <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
Hello!

Here is what i noticed when sniffing how my program worked.

Suppose I get() http://example.com, then request 
http://example.com/foo.html and then http://example.com/bar.css.
Upon requesting the 2nd url (foo.html), the Referrer is set to 
example.com, seems fine, but when requesting the the 3rd (bar.css) it's 
set to example.com/foo.html

How do I tell Mech to treat each request separately? Clone the object 
before each request which I wouldnt want Referrer to be set?


P.Krumins
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.