Httpclient close tcp connection

L

leesangjune

Hi, I'm trying to implement a http1.0 client program that closes each
tcp connection after a file is transfered. Once I establish an http
connection, how do I close the tcp connection and then reconnect?
Thanks in advance.
 
H

hibiki

(e-mail address removed) a écrit :
Hi, I'm trying to implement a http1.0 client program that closes each
tcp connection after a file is transfered. Once I establish an http
connection, how do I close the tcp connection and then reconnect?
Thanks in advance.

Do you connect via URL or via Sockets ?
In all cases you simply have to close the stream by calling the
Stream.close() function.

--
Salutations,

Joachim Naulet

06 14 90 06 21
http://jnaulet.no-ip.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,169
Messages
2,570,916
Members
47,458
Latest member
Chris#

Latest Threads

Top