ogerault has asked for the wisdom of the Perl Monks concerning the following question:
my $response = $ua->get($reportingOgdFormUrl);
if ($response->is_success) {
open(XLS, ">extract.xls") or die;
print XLS $response->content;
close(XLS);
} else {
die $response->status_line;
}
By analyzing the network traffic, WireShark tells two wired thinks:
Transfer-Encoding: chunked Content-Type: application/vnd.ms-excel; charset=UTF-8I tried to decode using UTF-8 and utf8 but it does'nt give any result. I can send the corrupted file (and the correct one) to anyone that would accept to help me. Regards, Olivier
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get corrupted Excel file from HTTP
by Corion (Patriarch) on Mar 20, 2009 at 15:06 UTC | |
by ogerault (Initiate) on Mar 24, 2009 at 14:15 UTC |