[Bug 159051] GET prints error message on http://www.britishairwaysband.com/veday.htm

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 21 16:11:32 UTC 2005


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug report.

Summary: GET prints error message on http://www.britishairwaysband.com/veday.htm


https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=159051


jvdias at redhat.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |CLOSED
         Resolution|                            |NOTABUG




------- Additional Comments From jvdias at redhat.com  2005-12-21 11:11 EST -------
We apologize for the delay in processing this bug report .


I've just downloaded page in question, with both: 
 $ wget http://www.britishairwaysband.com/veday.htm
and
 $ lwp-request  http://www.britishairwaysband.com/veday.htm > /tmp/veday.htm

It appears the message from LWP/Protocol.pm is not in error - 
the veday.htm file is full of illegal binary characters - 
e.g. the first line:

 $ head -1 < /tmp/veday.htm | od -cx
0000000 377 376   <  \0   H  \0   T  \0   M  \0   L  \0   >  \0  \r  \0
        feff 003c 0048 0054 004d 004c 003e 000d
0000020  \n  \0
        000a
0000021

Perl does its best to figure out what kind of encoding is being used, but
there is no encoding in which all the 8-bit sequences in this file are legal.
 
I suggest converting the file to 7-bit ASCII:

perl -ne 'foreach $c ( split //, $_ )
{ if( ((ord($c) < 0x20) && !( $c =~ /[\n\r\t\v]/)) || (ord($c) > 0x7f) )
  { next; }; 
  print $c; 
};' < /tmp/veday.htm > /tmp/veday_ascii.htm

I've attached the /tmp/veday_ascii.htm file so you can see the differences.


-- 
Configure bugmail: https://bugzilla.redhat.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




More information about the Fedora-perl-devel-list mailing list