Re: ^M in $res->content

Christoph Wernli (cw@dwc.ch)
Tue, 12 Oct 1999 11:32:57 +0200


Gunardi -Viriyaguna- Wu wrote:
> 
> Hi,
> 
> using:
> 
> $req = HTTP::Request->new(POST, $some_link);
> $req->content_type('application/x-www-form-urlencoded');
> $req->add_content($something);
> $res = $ua->request($req);
> print $res->content;
> 
> The $res->content contains ^M (DOS format for newline??)

Maybe they are there in the first place ? What is your result if you use a different User
Agent ?

-w