Jim said:
I have the following line of code:
<my $response = $ua->post(whatever)>
The $response which is returned contains HTML code and is now printing on
the DOS screen. How can I get it into an .html file so I can see it on my
computer screen?
"$ua->get( $url , $field_name => $value, ... )
This method will dispatch a GET request on the given $url. Further
arguments can be given to initialize the headers of the request. These
are given as separate name/value pairs. The return value is a response
object. See the HTTP::Response manpage for a description of the
interface it provides.
Fields names that start with ``:'' are special. These will not
initialize headers of the request but will determine how the response
content is treated. The following special field names are recognized:
:content_file => $filename
:content_cb => \&callback
:read_size_hint => $bytes
If a $filename is provided with the :content_file option, then the
response content will be saved here instead of in the response object. "
"... post... Additional headers and content options are the same as for
the get() method. "
RTFM