Avec le db.ini de FramaKey, on se retrouve avec toujours un téléchargement "xxx/0.34 KB".
C'est à dire avec un total faux.
J'ai fait des tests à partir de mon hebergeur Free, et je n'ai aucun soucis.
De plus le problème ne vient pas vraiment de AppSnap, mais plutot de la librairie utilisé par AppSnap, qui se nomme PycURL.
Bon je me suis bien arraché les cheveux pour trouver ces infos, il est donc difficile pour moi d'en assurer l'exactitude.
Je me base sur ces logs pour dire que ça vient de l'hebergeur FramaKey le problème :
les logs de PycURL (je crois, car à travers AppSnap) :
ceux de FramaKey en essayant de télécharger cafe :
- Code: Tout sélectionner
* About to connect() to www.framakey.org port 80 (#0)
* Trying 88.191.60.57... * connected
* Connected to www.framakey.org (88.191.60.57) port 80 (#0)
> GET /Portables/CAFE HTTP/1.1
User-Agent: PycURL/7.18.2
Host: www.framakey.org
Accept: */*
Accept-Encoding: deflate, gzip
< HTTP/1.1 200 OK
< Date: Sat, 23 Aug 2008 14:48:09 GMT
< Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
< X-Powered-By: PHP/5.2.0-8+etch11
< Expires: Tue, 01 Jan 2002 00:00:00 GMT
< Cache-Control: no-store, no-cache, must-revalidate
< Transfer-Encoding: chunked
< Content-Type: text/html; charset=ISO-8859-1;
<
* Connection #0 to host www.framakey.org left intact
* About to connect() to download.framakey.org port 80 (#1)
* Trying 88.191.60.57... * connected
* Connected to download.framakey.org (88.191.60.57) port 80 (#1)
> GET /apps/CAFE-1.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: download.framakey.org
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.framakey.org/Portables/CAFE
< HTTP/1.1 302 Found
< Date: Sat, 23 Aug 2008 14:48:15 GMT
< Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
< Location: http://files.framasoft.org/framakey/apps/CAFE-1.zip
< Content-Length: 340
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
* Connection #1 to host download.framakey.org left intact
* Issue another request to this URL: 'http://files.framasoft.org/framakey/apps/CAFE-1.zip'
* About to connect() to files.framasoft.org port 80 (#2)
* Trying 91.121.143.121... * connected
* Connected to files.framasoft.org (91.121.143.121) port 80 (#2)
> GET /framakey/apps/CAFE-1.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: files.framasoft.org
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.framakey.org/Portables/CAFE
< HTTP/1.1 404 Not Found
< Date: Sat, 23 Aug 2008 13:59:33 GMT
< Server: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g mod_fastcgi/2.4.6
< Content-Length: 353
< Content-Type: text/html; charset=iso-8859-1
<
* Connection #2 to host files.framasoft.org left intact
* Re-using existing connection! (#1) with host download.framakey.org
* Connected to download.framakey.org (88.191.60.57) port 80 (#1)
> GET /apps/CAFE-1.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: download.framakey.org
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.framakey.org/Portables/CAFE
< HTTP/1.1 302 Found
< Date: Sat, 23 Aug 2008 14:48:20 GMT
< Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
< Location: http://files.framasoft.org/framakey/apps/CAFE-1.zip
< Content-Length: 340
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
* Connection #1 to host download.framakey.org left intact
* Issue another request to this URL: 'http://files.framasoft.org/framakey/apps/CAFE-1.zip'
* Re-using existing connection! (#2) with host files.framasoft.org
* Connected to files.framasoft.org (91.121.143.121) port 80 (#2)
> GET /framakey/apps/CAFE-1.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: files.framasoft.org
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.framakey.org/Portables/CAFE
< HTTP/1.1 404 Not Found
< Date: Sat, 23 Aug 2008 13:59:38 GMT
< Server: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g mod_fastcgi/2.4.6
< Content-Length: 353
< Content-Type: text/html; charset=iso-8859-1
<
* Connection #2 to host files.framasoft.org left intact
* Re-using existing connection! (#1) with host download.framakey.org
* Connected to download.framakey.org (88.191.60.57) port 80 (#1)
> GET /apps/CAFE-1.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: download.framakey.org
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.framakey.org/Portables/CAFE
< HTTP/1.1 302 Found
< Date: Sat, 23 Aug 2008 14:48:25 GMT
< Server: Apache/2.2.3 (Debian) PHP/5.2.0-8+etch11
< Location: http://files.framasoft.org/framakey/apps/CAFE-1.zip
< Content-Length: 340
< Content-Type: text/html; charset=iso-8859-1
<
* Ignoring the response-body
* Connection #1 to host download.framakey.org left intact
* Issue another request to this URL: 'http://files.framasoft.org/framakey/apps/CAFE-1.zip'
* Re-using existing connection! (#2) with host files.framasoft.org
* Connected to files.framasoft.org (91.121.143.121) port 80 (#2)
> GET /framakey/apps/CAFE-1.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: files.framasoft.org
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://www.framakey.org/Portables/CAFE
< HTTP/1.1 404 Not Found
< Date: Sat, 23 Aug 2008 13:59:42 GMT
< Server: Apache/2.0.59 (Unix) mod_ssl/2.0.59 OpenSSL/0.9.8g mod_fastcgi/2.4.6
< Content-Length: 353
< Content-Type: text/html; charset=iso-8859-1
<
* Connection #2 to host files.framasoft.org left intact
On peut voir dans ce logs qu'il y a des choses incorrects, mais difficile de savoir quoi. Donc si pyg tu as une bonne connaissance du serveur FramaKey et des URL utilisés, tu pourrais peut etre pigé le problème
Et maintenant le logs sur mon hebergeur où tout se passe bien :
- Code: Tout sélectionner
* About to connect() to phpmouss.free.fr port 80 (#0)
* Trying 212.27.63.161... * connected
* Connected to phpmouss.free.fr (212.27.63.161) port 80 (#0)
> GET /DL/PortableAppSnap_v0.0.4.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: phpmouss.free.fr
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://phpmouss.free.fr/joomla/index.php?option=com_content&view=category&layout=blog&id=42&Itemid=58
< HTTP/1.1 200 OK
< Date: Sat, 23 Aug 2008 13:51:31 GMT
< Server: Apache/ProXad [Aug 9 2008 02:45:09]
< Last-Modified: Tue, 19 Aug 2008 21:15:27 GMT
< ETag: "20a906c-5ece91-48ab37ef"
< Connection: close
< Accept-Ranges: bytes
< Content-Length: 6213265
< Content-Type: application/zip
<
* Callback aborted
* Callback aborted
* Closing connection #0
* About to connect() to phpmouss.free.fr port 80 (#0)
* Trying 212.27.63.161... * connected
* Connected to phpmouss.free.fr (212.27.63.161) port 80 (#0)
> GET /DL/PortableAppSnap_v0.0.4.zip HTTP/1.1
User-Agent: PycURL/7.18.2
Host: phpmouss.free.fr
Accept: */*
Accept-Encoding: deflate, gzip
Referer: http://phpmouss.free.fr/joomla/index.php?option=com_content&view=category&layout=blog&id=42&Itemid=58
< HTTP/1.1 200 OK
< Date: Sat, 23 Aug 2008 13:51:34 GMT
< Server: Apache/ProXad [Aug 9 2008 02:45:09]
< Last-Modified: Tue, 19 Aug 2008 21:15:27 GMT
< ETag: "20a906c-5ece91-48ab37ef"
< Connection: close
< Accept-Ranges: bytes
< Content-Length: 6213265
< Content-Type: application/zip
<
* Callback aborted
* Callback aborted
* Closing connection #0
Les principales différences pour moi :
FramaKey : < Cache-Control: no-store, no-cache, must-revalidate
mon serveur : < Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Framakey : < Transfer-Encoding: chunked
mon serveur : rien
FramaKey : < Content-Type: text/html; charset=ISO-8859-1;
mon serveur : < Content-Type: text/html; charset=utf-8
Framakey : passe sur
< HTTP/1.1 302 Found
puis sur
< HTTP/1.1 404 Not Found
mon serveur reste sur < HTTP/1.1 200 OK
FramaKey : < Content-Length: 340 avec < HTTP/1.1 302 Found
et c'est la que ça coince et qu'il récupère la mauvaise taille du fichier, et toujours la meme taille : 0.34KB
mon serveur : < Content-Length: 6213265 (soit 6Mo environ, j'avais pris AppSnap en DL)
DONC LA JE SUIS SUPER MAL BARRE POUR DEBUGGE CE TRUC !!!!
Pyg, faut changer de serveur lol
-
Mouss
- Messages : 492
- Géo : Nantes (La Haie Fouassiere)