WWW::Mech & Referrer header

WWW::Mech & Referrer header

am 10.06.2007 15:44:26 von pknewsgroups

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

Re: WWW::Mech & Referrer header

am 10.06.2007 19:05:13 von Andy

On Jun 10, 2007, at 8:44 AM, Peteris Krumins [Newsgroups] wrote:

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

Yes.

--
Andy Lester => andy@petdance.com => www.petdance.com => AIM:petdance