Intaglio has asked for the wisdom of the Perl Monks concerning the following question:

Whenever I POST something with LWP I always get a bunch of this at the top of the program output:

HTTP/1.0 302 Found Date: Mon, 15 Jan 2001 00:11:45 GMT Location: http://foo.com Server: Netscape-Enterprise/2.01 Content-Length: 0 Content-Type: text/html Client-Date: Mon, 15 Jan 2001 00:11:45 GMT Client-Peer: 198.3.99.130:80

Is there a way to clear that stuff out? Thanks,

--
Intaglio

Replies are listed 'Best First'.
Re: Not displaying server info with LWP POST
by extremely (Priest) on Jan 15, 2001 at 08:43 UTC
    You are going to have to show us a little snippet of code on this one. I use LWP all the time (HTTP::Request I presume?) and never see server response headers I don't want.

    The only thing I can think of is you are using $r->as_string to return the data from the request rather than $r->content.

    --
    $you = new YOU;
    honk() if $you->love(perl)