I was thinking I could manually set $ENV{'http_referer'} = "test"; but that didn't quite work out.
In reply to how to fake http_referer by Anonymous Monk