in reply to HTTP referer

I don't see HTTP::Header in LWP. Do you mean HTTP::Headers?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
Re^2: HTTP referer
by Anonymous Monk on Jun 16, 2005 at 00:00 UTC
    yes. sorry. my $header = new HTTP::Headers( Date => scalar( gmtime ), Content_Type => 'text/html; version=4.1' ); $header->referer( "foo" ); gets me runtime error

      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