Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: File download tool, file size issues, cgi-application

by rhesa (Vicar)
on Mar 03, 2006 at 00:10 UTC ( [id://534093]=note: print w/replies, xml ) Need Help??


in reply to Re^4: File download tool, file size issues, cgi-application
in thread File download tool, file size issues, cgi-application

The only hint you'll likely be able to get is the reported download size. The log should say something like
#ip address ... request status code size ... 10.10.10.10 ... "GET /your/file HTTP/1.0" 200 65536 ...
The "size" field gives you the bytes sent. If the connection was broken mid-way, that value will be lower than your file size.

See Apache access log for the full details.

Replies are listed 'Best First'.
Re^6: File download tool, file size issues, cgi-application
by salvix (Pilgrim) on Mar 03, 2006 at 15:52 UTC
    Also watch out for status code 206, it is the "Partial Content" status code.

    In other words, it means the browser asked for a byte-range of data because it already had some data (e.g.: if the connection was interrupted during the download). So your log may also have a status code 206 and the size won't match the total file size...

    Oh, wouldn't it be easier if your ISP allowed "full" CGIs?? :-P

Re^6: File download tool, file size issues, cgi-application
by cupojoe (Novice) on Mar 03, 2006 at 00:20 UTC

    Very good.

    Thanks for your help!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://534093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2024-04-23 10:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found