im having a devil of a time debugging this.
I have two nearly identical requests for a up-to-now working module. Some
requests come back just fine. Others come back as a stream of binary
junk. The file is the correct size however, and since the requests are
nearly identical, i suspect that the response i get is technically the
correct page, just in a format that is unusable. a sample would be:
$response = bless( {
'_protocol' => 'HTTP/1.0',
'_content' =>
'[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL
PROTECTED]@^C�}�r�H���^U�~X^X~QZI^T^A�j~I�P[R[gl�#�����
[EMAIL PROTECTED]:[EMAIL PROTECTED]@U奲���^Ru9�nw~W�H}��~H
:�7\'?�ޫ)~E�]2~J��㽽�l�~X�^~H�~M~0�#��~]~M~M�Q4�:^[gO��~_u6^H9{����e�C�^Fy�^Y~
Y��t~
again this is a 'known working' site. the vast majority of city codes i
use end up returning wonderful pages of proper html. its just a few
anomaly city codes that return this mess.
If i grep it looking for phrases i expect to see on that page, were it
text, grep tells me that it IS a match but warns me that the file in
question is a binary file. so for example :
#>grep "currcode=EUR" 0006.res
Binary file 0006.res matches
any ideas?
--
gedanken