|
-
Feb 19th, 2001, 09:51 AM
#1
Thread Starter
Addicted Member
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)
-
Feb 19th, 2001, 11:39 AM
#2
Retired VBF Adm1nistrator
Well surely once all of the data has been received just Sock.Close ...
- jamie
Microsoft MVP : Visual Developer - Visual Basic [2004-2005]
-
Feb 19th, 2001, 11:49 AM
#3
Thread Starter
Addicted Member
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.
-
Feb 19th, 2001, 11:49 AM
#4
Thread Starter
Addicted Member
Thanks But ...
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|