Yeah i know, my english is not the best since im from brazil, i will try
again
hat's how i can do with C and win api
_Internet = InternetOpen("agent",INTERNET_OPEN_TYPE_PRECONFIG, NULL,
NULL, 0L);
_URLStream = InternetOpenUrl(hInternet, "URL", NULL, 0,
INTERNET_FLAG_NO_CACHE_WRITE | INTERNET_FLAG_PRAGMA_NOCACHE, 0);
InternetReadFileEx(_URLStream, &internetbuffer, IRF_NO_WAIT, 0); ///
&internetbuffer is where the bytes goes
like
1 : create internet object
2 : conect to the url
3 : get pieces of it
im don't know how to do it =/
ps: is there a way to execute an
httpsend.httpmethod('GET',xxxxxxxxxxxx') with no http headers? usind tcp
socket maybe?
Markku Uttula wrote:
> Arthur Pires wrote:
>
>> I'm not sure how to describe it, but i will try
>>
>> i need to download a stream from internet ( internet radio ) and read
>> some parts of buffer while it continues downloading the file
>>
>> i don't know much i have used synapse in past to download files, but i
>> don't know much.
>>
>
> Hmm... You know, Arthur, the question doesn't really compute...
>
> You're reading from HTTP-server just a stream of bytes; even a static
> document is a stream of bytes... This means that you can go and read x bytes,
> use them any way you wish, read the next x bytes, use them any way you wish,
> and keep doing this ad infinitum - or until you run out of bytes, which ever
> happens to come first.
>
> What is the actual problem you have? Are you using some comparatively high
> level functions (asking this since Synapse has both high- and low-level stuff
> for you as a programmer to use; the library is very versatile) that try to
> fetch the whole "document" before returning. If this is your problem, you
> will need to go to lower level and do all the connecting, http request
> issuing and byte readin as they drop in yourself (usually streaming does not
> involve reading the response "line by line", as there are no "lines" to speak
> of) ... but all-in-all, for us to be of any help you need to be a bit more
> specific on what you're having problem with :)
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public