вот не знаю, как это делать... чего остальные думают ? не будет им мешать моноширность в воде ?
asm примеров ... ну ... там ж кучку надо всяких. мож где готовый парсер есть... надо посмотреть.
roboforum.ruТехнический форум по робототехнике. |
|
|
nest писал(а):вот не знаю, как это делать... чего остальные думают ? не будет им мешать моноширность в воде ?
$allowed_mime = array('application/zip', 'application/x-zip-compressed', # ZIP
'application/tar', 'application/x-tar', # TAR
'application/gzip', 'application/x-gzip', # TAR.GZ
'application/x-bzip', 'application/x-bzip2', # TAR.BZ2
'application/rar', 'application/x-rar-compressed', # RAR
'application/x-lzma', # TAR.LZMA
);
vovan@vovan-pc:/tmp$ curl -v "http://roboforum.ru.local/download/file.php?id=5903" > /dev/null
* About to connect() to roboforum.ru.local port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to roboforum.ru.local (127.0.0.1) port 80 (#0)
> GET /download/file.php?id=5903 HTTP/1.1
> User-Agent: curl/7.19.2 (i686-pc-linux-gnu) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3.3
> Host: roboforum.ru.local
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 26 Dec 2008 22:44:02 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_wsgi/2.3 Python/2.6.1
< Set-Cookie: phpbb3_svg5d_u=1; expires=Mon, 05-Jan-2009 22:44:02 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_k=; expires=Mon, 05-Jan-2009 22:44:02 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_sid=659c42733f2a8216473ecb0fa186f88a; expires=Mon, 05-Jan-2009 22:44:02 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Pragma: public
< Content-Disposition: attachment; filename*=UTF-8''tmp.zip
< Content-Length: 2833
< Last-Modified: Fri, 26 Dec 2008 22:20:01 GMT
< Content-Type: application/x-zip-compressed
<
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 2833 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{ [data not shown]
101 2833 101 2833 0 0 18496 0 --:--:-- --:--:-- --:--:-- 553k* Connection #0 to host roboforum.ru.local left intact
* Closing connection #0
vovan@vovan-pc:/tmp$ curl -v "http://roboforum.ru.local/download/file.php?id=5904" > /dev/null
* About to connect() to roboforum.ru.local port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to roboforum.ru.local (127.0.0.1) port 80 (#0)
> GET /download/file.php?id=5904 HTTP/1.1
> User-Agent: curl/7.19.2 (i686-pc-linux-gnu) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3.3
> Host: roboforum.ru.local
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 26 Dec 2008 22:44:06 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_wsgi/2.3 Python/2.6.1
< Set-Cookie: phpbb3_svg5d_u=1; expires=Mon, 05-Jan-2009 22:44:06 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_k=; expires=Mon, 05-Jan-2009 22:44:06 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_sid=d0cce08e088246bd194bbd4409208f30; expires=Mon, 05-Jan-2009 22:44:06 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Pragma: public
< Content-Disposition: attachment; filename*=UTF-8''tmp.tar
< Content-Length: 10240
< Last-Modified: Fri, 26 Dec 2008 22:20:17 GMT
< Content-Type: application/x-tar
<
{ [data not shown]
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 10240 100 10240 0 0 78804 0 --:--:-- --:--:-- --:--:-- 500k* Connection #0 to host roboforum.ru.local left intact
* Closing connection #0
vovan@vovan-pc:/tmp$ curl -v "http://roboforum.ru.local/download/file.php?id=5905" > /dev/null
* About to connect() to roboforum.ru.local port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to roboforum.ru.local (127.0.0.1) port 80 (#0)
> GET /download/file.php?id=5905 HTTP/1.1
> User-Agent: curl/7.19.2 (i686-pc-linux-gnu) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3.3
> Host: roboforum.ru.local
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 26 Dec 2008 22:44:16 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_wsgi/2.3 Python/2.6.1
< Set-Cookie: phpbb3_svg5d_u=1; expires=Mon, 05-Jan-2009 22:44:16 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_k=; expires=Mon, 05-Jan-2009 22:44:16 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_sid=dbe1075183ee7513084d904642038b18; expires=Mon, 05-Jan-2009 22:44:16 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Pragma: public
< Content-Disposition: attachment; filename*=UTF-8''tmp.tar.gz
< Content-Length: 2129
< Last-Modified: Fri, 26 Dec 2008 22:20:31 GMT
< Content-Type: application/x-gzip
<
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 2129 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{ [data not shown]
101 2129 101 2129 0 0 15840 0 --:--:-- --:--:-- --:--:-- 415k* Connection #0 to host roboforum.ru.local left intact
* Closing connection #0
vovan@vovan-pc:/tmp$ curl -v "http://roboforum.ru.local/download/file.php?id=5906" > /dev/null
* About to connect() to roboforum.ru.local port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to roboforum.ru.local (127.0.0.1) port 80 (#0)
> GET /download/file.php?id=5906 HTTP/1.1
> User-Agent: curl/7.19.2 (i686-pc-linux-gnu) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3.3
> Host: roboforum.ru.local
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 26 Dec 2008 22:44:21 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_wsgi/2.3 Python/2.6.1
< Set-Cookie: phpbb3_svg5d_u=1; expires=Mon, 05-Jan-2009 22:44:21 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_k=; expires=Mon, 05-Jan-2009 22:44:21 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_sid=901ee6ede092dfb87e4049a3fefa7bf9; expires=Mon, 05-Jan-2009 22:44:21 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Pragma: public
< Content-Disposition: attachment; filename*=UTF-8''tmp.tar.bz2
< Content-Length: 2340
< Last-Modified: Fri, 26 Dec 2008 22:20:46 GMT
< Content-Type: application/x-bzip
<
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 2340 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{ [data not shown]
101 2340 101 2340 0 0 17442 0 --:--:-- --:--:-- --:--:-- 285k* Connection #0 to host roboforum.ru.local left intact
* Closing connection #0
vovan@vovan-pc:/tmp$ curl -v "http://roboforum.ru.local/download/file.php?id=5907" > /dev/null
* About to connect() to roboforum.ru.local port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to roboforum.ru.local (127.0.0.1) port 80 (#0)
> GET /download/file.php?id=5907 HTTP/1.1
> User-Agent: curl/7.19.2 (i686-pc-linux-gnu) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3.3
> Host: roboforum.ru.local
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 26 Dec 2008 22:44:26 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_wsgi/2.3 Python/2.6.1
< Set-Cookie: phpbb3_svg5d_u=1; expires=Mon, 05-Jan-2009 22:44:26 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_k=; expires=Mon, 05-Jan-2009 22:44:26 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_sid=929ce6d50e70d894ca948dbbf9957d51; expires=Mon, 05-Jan-2009 22:44:26 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Pragma: public
< Content-Disposition: attachment; filename*=UTF-8''tmp.tar.lzma
< Content-Length: 1991
< Last-Modified: Fri, 26 Dec 2008 22:26:12 GMT
< Content-Type: application/x-lzma
<
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 1991 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{ [data not shown]
104 1991 104 1991 0 0 12320 0 --:--:-- --:--:-- --:--:-- 324k* Connection #0 to host roboforum.ru.local left intact
* Closing connection #0
vovan@vovan-pc:/tmp$ curl -v "http://roboforum.ru.local/download/file.php?id=5908" > /dev/null
* About to connect() to roboforum.ru.local port 80 (#0)
* Trying 127.0.0.1... connected
* Connected to roboforum.ru.local (127.0.0.1) port 80 (#0)
> GET /download/file.php?id=5908 HTTP/1.1
> User-Agent: curl/7.19.2 (i686-pc-linux-gnu) libcurl/7.19.2 OpenSSL/0.9.8i zlib/1.2.3.3
> Host: roboforum.ru.local
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Fri, 26 Dec 2008 22:44:28 GMT
< Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8i DAV/2 mod_wsgi/2.3 Python/2.6.1
< Set-Cookie: phpbb3_svg5d_u=1; expires=Mon, 05-Jan-2009 22:44:28 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_k=; expires=Mon, 05-Jan-2009 22:44:28 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Set-Cookie: phpbb3_svg5d_sid=df257b6c2543bcd14afc9e120fa0f55a; expires=Mon, 05-Jan-2009 22:44:28 GMT; path=/; domain=.roboforum.ru.local; HttpOnly
< Pragma: public
< Content-Disposition: attachment; filename*=UTF-8''include.rar
< Content-Length: 3496
< Last-Modified: Fri, 26 Dec 2008 22:26:31 GMT
< Content-Type: application/rar
<
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 3496 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0{ [data not shown]
102 3496 102 3496 0 0 27639 0 --:--:-- --:--:-- --:--:-- 682k* Connection #0 to host roboforum.ru.local left intact
* Closing connection #0
vovan@vovan-pc:/tmp$
Вернуться в Организационные вопросы
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3