Internet Development

Moderators: None (Apply to moderate this forum)
Number of threads: 1024
Number of posts: 1892

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Edit Report
help with http! Posted by CEK on 30 Jun 2000 at 7:42 AM
How can I ask through a HTTP protocol a file size????


Edit Report
Re: help with http! Posted by Matt(AA) on 10 Jul 2000 at 12:50 PM
head /file.ext http/1.1<br>
<br>
That will return the file header to you. The content-length variable that gets returned with the header will tell you the file size, in bytes.<br>
<br>
ie:<br>
HTTP/1.1 200 OK<br>
Content-Length: 12085<br>
Content-Type: text/html<br>
<br>
Hope this helps,<br>
Matt(AA)<br>
<br>
: How can I ask through a HTTP protocol a file size????<br>
: <br>
<br>






 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.