Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Apr : IdHTTP and Transfer-Encoding: chunked

www.cryer.info
Managed Newsgroup Archive

IdHTTP and Transfer-Encoding: chunked

Subject:IdHTTP and Transfer-Encoding: chunked
Posted by:"Samson Fu" (fusams..@gmail.com)
Date:Mon, 11 Apr 2005 14:16:48

I need to write an application to receive & process stream data from a http server. The stream data is queried by HTTP GET.
I found the HTTP header contains a field: "Transfer-Encoding: chunked".

Can Indy IdHTTP handle this kind of streamming data?

I have try to download the stream data using a TCP connection, but it is not HTTP level, I need to do lot of work to decode HTTP
headers, and cookies etc...

Here is the sample stream data I got from the HTTP server.


HTTP/1.1 200 OK
X-Powered-By: Servlet 2.4; Tomcat-5.0.28/JBoss-3.2.7 (build: CVSTag=JBoss_3_2_7 date=200501280217)
Transfer-Encoding: chunked
Date: Mon, 11 Apr 2005 03:49:33 GMT
Server: Apache-Coyote/1.1

2
OK
c
XX0 1135233


--
Samson Fu

Replies:

www.cryer.info
Managed Newsgroup Archive