I understand how to play with text and sockets, but binary data is giving me trouble. But I'm quite sure I'm not doing anything wrong here though... given the tests I've tried.

I have a binary comparison program (AptDiff) works great. I download an image with my web browser, and then download the same image with my script. In a binary comparison, ... basically all HEX 00 (NULL) bytes are HEX 20 (SPACE) instead. I've tried this with 2 different files (a JPG and a PNG) on 2 different hosts.

I'm running Wireshark (network protocol analyzer) to verify what is downloaded with the web browser AND with mIRC. In both cases of the JPG and the PNG ... according to Wireshark all HEX 00 bytes are being read properly when downloading images with the web browser, but only when I use my mIRC script ... i verify with AptDiff and sure enough, in the file downloaded by mIRC all HEX 00 bytes are HEX 20 instead.

I even tried reversing all HEX 20 bytes, but some of the existing HEX 20 bytes are necessary in the JPG and PNG formats :P

Can anyone else verify this?

Here is my script:
http://rapidshare.com/files/190881988/batchdownloader.mrc

Link to the data-file my script creates (so you can use my data):
(place this in %Mirc_path%/scripts/data)
http://rapidshare.com/files/190884221/batchdl.ini

Link to AptDiff (freeware):
http://www.download.com/AptDiff/3000-2248_4-10699723.html

Link to Wireshark (freeware):
http://www.wireshark.org/download.html

Basically I'm just making a batch downloader that has more and better features than what I've seen in other programs. Again I'm not sure if it is something in my script, or with mIRC, though signs point to mIRC from what I can find.

System Specs:
mIRC v6.34
Win XP Pro SP3
A-bit KN8-SLI (nVidia nForce chipset)
nVidia nForce Networking Controller

EDIT: I realize that how my script currently reads stuff is to actually include the HTTP 200 OK msg ... and I also just found that after opening, modifying, and saving a pic file in notepad, all HEX 00 characters change to HEX 20 :P ... oh god frown ... I feel like an idiot ... I guess I'll try omitting the HTTP traffic from the binary file ... heh

EDIT2: never mind ... i just didn't know how to handle the protocol as all the data came in. Now I'm good, and mIRC is right smile

Last edited by TheArkive; 29/01/09 01:35 AM.