in reply to Re^2: HTTP referer
in thread HTTP referer

From the documentation, which merlyn was kind enough to point to:

$h->header('Content-Type' => 'text/plain'); # set $ct = $h->header('Content-Type'); # get $h->remove_header('Content-Type'); # delete

So, if you're trying to set the referrer to 'foo', you probably want the following:

$header -> header( 'Referer' => 'foo' );

Replies are listed 'Best First'.
Re^4: HTTP referer
by Anonymous Monk on Jun 16, 2005 at 00:37 UTC
    the problm isnt setting the header, its getting $ua->request( $request ); to work with it. instead i get a 501 error. so i ask if there is another way to do http request with control over referer