A request to phade. (Using limited download managers)

User avatar
Phade
Site Admin
Joined: Fri Oct 20, 2000 10:49 pm
Location: Little cabin in the woods...
Org Profile

Post by Phade » Sun Aug 03, 2003 1:06 pm

Hey,

Oh. Try it again now.

Phade.

User avatar
Dan42
Joined: Fri Jun 22, 2001 8:19 pm
Contact:
Org Profile

Post by Dan42 » Sun Aug 03, 2003 11:02 pm

No luck I'm afraid. :-(

Not only does DAP not recognize that it can resume, but it doesn't even recognize the suggested filename! It simply saves the file as "10538"! I never had any of those problems when I wrote the script. grrr....

Ok, let's do this methodically. The differences between the 2 scripts are:
1) the 60-second delay
2) Content-Type is application/octet-stream instead of application/x-gzip
3) Accept-Ranges was not being sent with full file

Apart from that, the 2 scripts are completely equivalent. #3 has been fixed, and there's no way that #2 can have any bearing on the problem, so it has to be #1. Although I don't understand why it would create that kind of problem, it's the only thing I can see.
Dan42
Encyclopedist & PHP/SQL guy @ Anime News Network
Webmaster @ Dan42's Jin-Roh Lair & Chiyoko, Millennium Actress

marvin
Joined: Sat Dec 01, 2001 6:20 pm
Location: Stockholm, Sweden
Org Profile

Post by marvin » Mon Aug 04, 2003 5:32 pm

I just tried this resuming script with wget, with slightly mixed results.

First, I put the relevant cookies in ~/.wget_amv_cookies, found a video on the new downloads list, clicked the local download, clicked stop, swore over the fact that I now didn't get to see the link (javascript gets stoped too, and why don't people without javascript get to see the link in the first place?), found the link, and ran

Code: Select all

wget --server-response --load-cookies ~/.wget_amv_cookies 'http://nago.animemusicvideos.org/downloadlocal.php?v=2060'
which got me

Code: Select all

Resolving nago.animemusicvideos.org... done.
Connecting to nago.animemusicvideos.org[205.134.161.105]:80... connected.
HTTP request sent, awaiting response... 
 1 HTTP/1.1 200 OK
 2 Date: Mon, 04 Aug 2003 21:42:18 GMT
 3 Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2
 4 X-Powered-By: PHP/4.1.2
 5 Accept-Ranges: bytes
 6 Content-Disposition: attachment; filename="DiGi Charat - Slipknot - Wait and Bleed.mpg"
 7 Content-Length: 41224196
 8 Keep-Alive: timeout=15, max=100
 9 Connection: Keep-Alive
10 Content-Type: application/octet-stream
so far, so good. I interrupted it, and reran it with -c (resume). It still worked. I interrupted it again, and tried again. This time I got:

Code: Select all

Resolving nago.animemusicvideos.org... done.
Connecting to nago.animemusicvideos.org[205.134.161.105]:80... connected.
HTTP request sent, awaiting response... 
End of file while parsing headers.
Retrying.

--23:37:22--  http://nago.animemusicvideos.org/downloadlocal.php?v=2060
  (try: 2) => `downloadlocal.php?v=2060'
Connecting to nago.animemusicvideos.org[205.134.161.105]:80... connected.
HTTP request sent, awaiting response... 
 1 HTTP/1.1 200 OK
 2 Date: Mon, 04 Aug 2003 21:37:31 GMT
 3 Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.1.2
 4 X-Powered-By: PHP/4.1.2
 5 Connection: close
 6 Content-Type: text/html; charset=iso-8859-1

Continued download failed on this file, which conflicts with `-c'.
Refusing to truncate existing file `downloadlocal.php?v=2060'.
So, now it didn't like me anymore. I deleted the file, and it worked again. But the code definitely isn't behaving quite right. (Yes I waited at least a minute between attempts)

(The date-headers seem strange, yes, I actually showed the headers from the new DL for the first one, because I didn't actually include --server-response in the original one.)

User avatar
Phade
Site Admin
Joined: Fri Oct 20, 2000 10:49 pm
Location: Little cabin in the woods...
Org Profile

Post by Phade » Mon Aug 04, 2003 6:08 pm

Hey,

Hmmm, time to move this thread to the "programmers" group...

Phade.

User avatar
Dan42
Joined: Fri Jun 22, 2001 8:19 pm
Contact:
Org Profile

Post by Dan42 » Mon Aug 04, 2003 6:15 pm

snif, I'm not a "programmer" ;_;
Dan42
Encyclopedist & PHP/SQL guy @ Anime News Network
Webmaster @ Dan42's Jin-Roh Lair & Chiyoko, Millennium Actress

User avatar
Phade
Site Admin
Joined: Fri Oct 20, 2000 10:49 pm
Location: Little cabin in the woods...
Org Profile

Post by Phade » Mon Aug 04, 2003 6:19 pm

Hey Dan42,

Ummm, yes you are. You should see the "programmers" forum. If not, let me know because there is a bunch of people missing from the group then.

Phade.

User avatar
Daio Kaji
Joined: Thu Dec 12, 2002 8:29 am
Location: ..wat goes here now?¿
Org Profile

Post by Daio Kaji » Wed Aug 06, 2003 1:17 am

Dan42 wrote:snif, I'm not a "programmer" ;_;
well u've got the makings of one my friend
at the very least, spunk
If you're reading this, you've gone too far...PREPARE FOR RETRIBUTION!!
Don't judge an AMV by it's anime.. u nooB ;D
Image

User avatar
derobert
Phantom of the .Org
Joined: Wed Oct 24, 2001 8:35 am
Location: Sterling, Virginia
Contact:
Org Profile

Post by derobert » Sun Aug 10, 2003 1:00 am

Dan42 wrote:

Code: Select all

$filename = "$DOCUMENT_ROOT/.../$file"
Oooh! Oooh! Can I have script.php?file=../../etc/passwd or whatever it turns out to be?

[Don't bother trying this on .org. We use the video ID to figure out where the file is.]
Key 55EA59FE; fingerprint = E501 CEE3 E030 2D48 D449 274C FB3F 88C2 55EA 59FE
A mighty order of ages is born anew.              http://twitter.com/derobert

User avatar
derobert
Phantom of the .Org
Joined: Wed Oct 24, 2001 8:35 am
Location: Sterling, Virginia
Contact:
Org Profile

Post by derobert » Sun Aug 10, 2003 1:06 am

gypsy wrote:If there is more thatn one of the same i.p. connected to the file server the connection must be terminated.
Hint: ISP web caches can have thousands of users all behind the same IP address. Same with corporate (and home) NAPT gateways.
Key 55EA59FE; fingerprint = E501 CEE3 E030 2D48 D449 274C FB3F 88C2 55EA 59FE
A mighty order of ages is born anew.              http://twitter.com/derobert

gypsy
Joined: Wed Feb 20, 2002 2:13 pm
Location: South Africa
Contact:
Org Profile

Post by gypsy » Sat Sep 27, 2003 4:37 pm

what's the final word on this dilema ?

I get disconnected more frequently from the .org's server using mozilla and mozilla doesn't have a resume function so that doesn't help me at all.

Thanx

Locked

Return to “Site Help & Feedback”