HTTP question!

How can I ask through a HTTP protocol a file size????


Comments

  • : How can I ask through a HTTP protocol a file size????



    Here is the exact data I ripped from the transfer detail of a program called GetRight:



    Here is the header sent:



    -- Begin Header --



    GET /files/cwater2.zip HTTP/1.1

    Host: www.poseidonet.f2s.com

    Range: bytes=0-

    User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows 98)

    Accept: *.*, */*

    Referer: http://www.delorie.com/djgpp/zip-picker.cgi



    -- End Header



    Here is what the server sends back:



    -- Begin Server Header --





    HTTP/1.1 200 OK

    Date: Sat, 01 Jul 2000 04:59:32 GMT

    Server: Apache/1.3.9 (Unix)

    Last-Modified: Mon, 05 Jun 2000 06:57:12 GMT

    ETag: "16998e-585d5-393b4f48"

    Accept-Ranges: bytes

    Content-Length: 361941

    Content-Type: application/zip



    -- End Server Header --



    I think you can figure it out.



    -Xotor-


  • Thank you ery much Xotor!!


Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories