Click to See Complete Forum and Search --> : Socket Don't Know to close
cantene
Feb 19th, 2001, 08:51 AM
Dear Friends,
I am using a dsSocket to download something from a website. But the connection is not closed automatically after the data has been fully received. How can I close the connection automatically. What HTTP header should be used? (HTTP 1.1 is used)
plenderj
Feb 19th, 2001, 10:39 AM
Well surely once all of the data has been received just Sock.Close ...
- jamie
cantene
Feb 19th, 2001, 10:49 AM
Originally posted by plenderj
Well surely once all of the data has been received just Sock.Close ...
- jamie
Thanks for your reply. But I have tried just explicitly close the connection results in no change in the socket state. If I press the close button for twice, the error "Successful WSASARTUP not yet performed, err code 21093" occurs.
Anything, I have tried to use an alternative method to solve the problem. I post the request to the server using HTTP 1.0 then the connection will automatically close after the data is fully transferred.
Thanks for your help indeed.
cantene
Feb 19th, 2001, 10:49 AM
Originally posted by plenderj
Well surely once all of the data has been received just Sock.Close ...
- jamie
Thanks for your reply. But I have tried just explicitly close the connection results in no change in the socket state. If I press the close button for twice, the error "Successful WSASARTUP not yet performed, err code 21093" occurs.
Anything, I have tried to use an alternative method to solve the problem. I post the request to the server using HTTP 1.0 then the connection will automatically close after the data is fully transferred.
Thanks for your help indeed.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.