in reply to Re^5: Cannot access HTTP::Response content properly
in thread Cannot access HTTP::Response content properly
Ok, so then I need to encode my output to ascii text somehow. You'll have to excuse my ignorance here as this is totally uncharted territory for me. So would something like the following work?
use Encode qw(encode); . . . my $decodedContent = encode("ascii", $res->content);
Where $decodedContent is the text that I am looking for?
Is there a difference if I use HTTP::Message-> encode($encoding) instead? I'm not entirely sure of the man pages on this.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Cannot access HTTP::Response content properly
by ikegami (Patriarch) on Nov 03, 2009 at 17:57 UTC | |
by URAvgDeveloper101 (Novice) on Nov 03, 2009 at 19:48 UTC | |
by ikegami (Patriarch) on Nov 03, 2009 at 20:09 UTC | |
by URAvgDeveloper101 (Novice) on Nov 03, 2009 at 20:19 UTC | |
by ikegami (Patriarch) on Nov 03, 2009 at 21:00 UTC | |
| |
by ikegami (Patriarch) on Nov 03, 2009 at 21:05 UTC | |
|