편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.
최신판 | 당신의 편집 | ||
1번째 줄: | 1번째 줄: | ||
==개요== | ==개요== | ||
;wget 제공되는 파일명으로 다운로드 | ;wget 제공되는 파일명으로 다운로드 | ||
;wget 파일명 헤더로부터 받기 | ;wget 파일명 헤더로부터 받기 | ||
<source lang='bash'> | <source lang='bash'> | ||
wget --content-disposition 'URL주소' | wget --content-disposition 'URL주소' | ||
20번째 줄: | 18번째 줄: | ||
2016-10-07 18:15:32 (1.94 MB/s) - ‘download1.php’ saved [12/12] | 2016-10-07 18:15:32 (1.94 MB/s) - ‘download1.php’ saved [12/12] | ||
</source> | </source> | ||
* <code>--content-disposition</code> 옵션을 붙이면, 서버에서 제공하는 | * <code>--content-disposition</code> 옵션을 붙이면, 서버에서 제공하는 파일명([[Content-Disposition]])인 <code>hello_world.txt</code>로 받아짐 | ||
<source lang='console'> | <source lang='console'> | ||
root@zetawiki:~# wget http://example.zetawiki.com/php/download1.php --content-disposition | root@zetawiki:~# wget http://example.zetawiki.com/php/download1.php --content-disposition | ||
27번째 줄: | 25번째 줄: | ||
2016-10-07 18:15:38 (2.23 MB/s) - ‘hello_world.txt’ saved [12/12] | 2016-10-07 18:15:38 (2.23 MB/s) - ‘hello_world.txt’ saved [12/12] | ||
</source> | </source> | ||
==같이 보기== | ==같이 보기== | ||
* [[리눅스 wget]] | * [[리눅스 wget]] | ||
==참고== | ==참고 자료== | ||
*http://askubuntu.com/questions/77711/force-wget-to-use-actual-filename | *http://askubuntu.com/questions/77711/force-wget-to-use-actual-filename | ||
[[분류: 리눅스]] | [[분류: 리눅스]] |