A request to phade. (Using limited download managers)
- Dan42
- Joined: Fri Jun 22, 2001 8:19 pm
- Contact:
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.
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
Encyclopedist & PHP/SQL guy @ Anime News Network
Webmaster @ Dan42's Jin-Roh Lair & Chiyoko, Millennium Actress
-
- Joined: Sat Dec 01, 2001 6:20 pm
- Location: Stockholm, Sweden
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
which got me
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:
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.)
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'
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
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'.
(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.)
- Dan42
- Joined: Fri Jun 22, 2001 8:19 pm
- Contact:
snif, I'm not a "programmer" ;_;
Dan42
Encyclopedist & PHP/SQL guy @ Anime News Network
Webmaster @ Dan42's Jin-Roh Lair & Chiyoko, Millennium Actress
Encyclopedist & PHP/SQL guy @ Anime News Network
Webmaster @ Dan42's Jin-Roh Lair & Chiyoko, Millennium Actress
- Daio Kaji
- Joined: Thu Dec 12, 2002 8:29 am
- Location: ..wat goes here now?¿
- derobert
- Phantom of the .Org
- Joined: Wed Oct 24, 2001 8:35 am
- Location: Sterling, Virginia
- Contact:
Oooh! Oooh! Can I have script.php?file=../../etc/passwd or whatever it turns out to be?Dan42 wrote:Code: Select all
$filename = "$DOCUMENT_ROOT/.../$file"
[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
A mighty order of ages is born anew. http://twitter.com/derobert
- derobert
- Phantom of the .Org
- Joined: Wed Oct 24, 2001 8:35 am
- Location: Sterling, Virginia
- Contact:
Hint: ISP web caches can have thousands of users all behind the same IP address. Same with corporate (and home) NAPT gateways.gypsy wrote:If there is more thatn one of the same i.p. connected to the file server the connection must be terminated.
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
A mighty order of ages is born anew. http://twitter.com/derobert
-
- Joined: Wed Feb 20, 2002 2:13 pm
- Location: South Africa
- Contact: