Http file transfer using "Transfer-Encoding: chunked". How do i transfer large files to a webserver forth and back ?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dirk_Keller
Posted On:   Monday, July 29, 2002 08:05 AM

One of the main issues i currently have to solve is the filetransfer from a signed applet to a webserver through proxies in a secure manner. To access the webserver (e.g. the servlet) i establish a TCP connection (socket) either via SSL or common socket connection and translate the http headers and data according HTTP1/1. Unfortunately proxy servers like Microsofts ISA proxy server will disconnect the applet-to-proxy connection when you provide an http header with "Transfer-Enconding: chunked". To avoid this i have to go back to Http1.0 and forget about chunked-encoding. But without chunked encoding it seems that the memory of the server would overflow in the    More>>

One of the main issues i currently have to solve is the filetransfer from a
signed applet to a webserver through proxies in a secure manner.

To access the webserver (e.g. the servlet) i establish a TCP connection (socket)
either via SSL or common socket connection and translate the http headers and
data according HTTP1/1.


Unfortunately proxy servers like Microsofts ISA proxy server will disconnect
the applet-to-proxy connection when you provide an http header with "Transfer-Enconding:
chunked".

To avoid this i have to go back to Http1.0 and forget about chunked-encoding.
But without chunked encoding it seems that the memory of the server would overflow
in the case of large files or many concurrent uploads. It seems the servlet
engine receives and caches the whole request (incl. data) before it allows to
read from the ServletInputStream and clean up its memory.


I use iPlanet Webserver 6.0 SP2 and can imaging some scenarios with my own
serversocket implementation or multiple request-response handshaking during
one transfer session.


Does anybody know where to turn a "screw" or where i can get some
code examples for transferring large files using http 1.0?


Thank you in advance


Dirk

   <<Less
About | Sitemap | Contact