in reply to Re: HTTP referer
in thread HTTP referer

yes. sorry. my $header = new HTTP::Headers( Date => scalar( gmtime ), Content_Type => 'text/html; version=4.1' ); $header->referer( "foo" ); gets me runtime error

Replies are listed 'Best First'.
Re^3: HTTP referer
by jhourcle (Prior) on Jun 16, 2005 at 00:35 UTC

    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' );
      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