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

ik idokan at gmail.com
Mon Jan 17 16:53:17 CET 2011


Try to use FHTTPSend.Document

Please note that it's a stream.

Ido
LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il




2011/1/17 silvioprog <silvioprog at gmail.com>

> 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
>
> --
> _______________________________________________
> Lazarus mailing list
> Lazarus at lists.lazarus.freepascal.org
> http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110117/20d07862/attachment-0003.html>


More information about the Lazarus mailing list