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

Reply via email to