[bcn-pm] download archivo en cgi

Xavier Noria fxn at hashref.com
Sun Jun 29 12:32:54 CDT 2003


On Sunday 29 June 2003 19:21, carlos escribano wrote:

> carlos at scrinium:~$ telnet 192.168.1.254 80
> Trying 192.168.1.254...
> Connected to 192.168.1.254.
> Escape character is '^]'.
> GET /perl/tangle.pl?filename=soft/weave.dbk&dir=/tmp
> Content-type: application/x-zip-compressed
> Content-Disposition: attachment; filename="weave.tar.gz"

Por curiosidad he pedido por telnet un tarball a CPAN y las cabeceras 
son estas:

HTTP/1.1 200 OK
Date: Sun, 29 Jun 2003 17:25:52 GMT
Server: Apache/2.0.44-dev (Unix) DAV/2
Last-Modified: Sun, 29 Jun 2003 11:37:09 GMT
ETag: "57c2f-ee6-9816e340"
Accept-Ranges: bytes
Content-Length: 3814
Content-Type: application/x-tar
Content-Encoding: x-gzip

Has probado a usar esos dos ultimos en vez del tipo MIME que usas? La 
verdad es que solo intento lanzar ideas, porque el codigo en si se ve 
bien en principio.

fxn
-- 
$_=q;Barcelona Perl Mongers;,$/=y~gaudi~~,;map$,+=(split//)*(-1)**$|++,
(split)[.11_09,1.714];$.=$!!~m~erce~;$"=y~catalunya~~,$;=y~rambles~~,$*
=$/^$.;$:=$.+length,$@=$***$**$/**$*%$:,$%=$/*$"-$*;print+chr($_<0xA?$.
."$[$_":m:^$.:?"$.$_":$_)for($**($**$%-$//$/),$%-$*,$,*$/,$***$***$*,$*
**$,,$"*$@+$**$/,$**$,,$;,$***$***$*,$***$*,$.,$**$",$***$,,$***$***$**
$,,$.,$"*$*,$"+$.,$***$,,$,-$.,$"*$@+$**$/,$;*$/**$*,$",$.,++$@+by_fxn)




More information about the Barcelona-pm mailing list