Login  
Search All Forums
Dart Home | PowerTCP Web Enterprise for ActiveX | Custom Development Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
AuthorForum: PowerTCP Web Enterprise for ActiveX
Topic: I only want to get files size, not download all data.
happysu

From: gd, USA
Posts: 2
Member Since: 03/07/04
posted March 7, 2004 11:05 PM

If i use "WebASP1.Get", it will get all content of the file, but i just only want to get the file's size, how can i do?
Tony Priest



From: Utica, NY USA
Posts: 8466
Member Since: 04/11/00
posted March 7, 2004 11:26 PM

Use the WebASP1.Head method to get the header. The size will be here:

WebASP1.Response.Header.Find(httpContentLength)

happysu

From: gd, USA
Posts: 2
Member Since: 03/07/04
posted March 8, 2004 1:11 AM

oh yes, it works!!! thank you very much!!!

Nice powerTCP!
Reply | PowerTCP Web Enterprise for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX