[Lazarus] Get binary (byte by byte) from a HTTP host

silvioprog silvioprog at gmail.com
Mon Jan 17 16:48:58 CET 2011


Hi folks,

I'm tryng to download byte by byte from a binary in a HTTP host, but synapse
put the header informations in my binary, e.g.:

My original binary content:
0AAAAAAAAAAAAAAAAAAA
1AAAAAAAAAAAAAAAAAAA
2AAAAAAAAAAAAAAAAAAA

Synapse content:
*HTTP/1.1 200 OK
Date: Mon, 17 Jan 2011 15:40:57 GMT
Server: Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l
mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4
Perl/v5.10.1
Last-Modified: Mon, 17 Jan 2011 15:38:09 GMT
ETag: "d000000054b36-40-49a0c922bb965"
Accept-Ranges: bytes
Content-Length: 64
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: text/plain*

0AAAAAAAAAAAAAAAAAAA
1AAAAAAAAAAAAAAAAAAA
2AAAAAAAAAAAAAAAAAAA

How I get only 0AAAAAAAAAAAAAAAAAAA, 1AAAAAAAAAAAAAAAAAAA,
2AAAAAAAAAAAAAAAAAAA... to save in my binary?

Thanks, and excuse me for my poor english. ;)

PS. Simple sample to reproduce 'error' in attached.

-- 
*Silvio Clécio*
*Blog.* blog.silvioprog.com.br
*Twitter.* twitter.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110117/19c9cd21/attachment-0002.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: how.zip
Type: application/zip
Size: 2773 bytes
Desc: not available
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110117/19c9cd21/attachment-0002.zip>


More information about the Lazarus mailing list