Use of wget in mingw

Source: Internet
Author: User

Use of wget in mingw 1. set mingw to enter and display Chinese Characters in shell. Open the configuration file/etc/profile and add it at the end, export LANG = en alias l = '/bin/ls -- show-control-chars -- color = auto' alias la ='/bin/ls-aF -- show-control-chars -- color = auto'alias ll = '/bin/ls-alF -- show-control-chars -- color = auto' alias ls ='/bin/ls -- show-control-chars -- color = auto' Chinese input will be/etc/inputrc. default and. modify related items in the inputrc file to the following: set meta-flag onset input-meta onset output-m Eta onset convert-meta off2. install wget software because the wget version installed by mingw is too old, therefore, you need to update the wget software mingw-get update // update the mingw installation package information mingw-get show | grep 'wget' // display information about the wget installation package mingw-get install msys-wget // install the latest wget installation package 3. use wget to download all the mythical chats in avlog.avplayer.org using the https protocol. In wget, set the related options wget-r-nd-np -- no-check-certificate 'https: // Butler https://avlog.avpla Yer.org/~c9%f1%bb%bothis is probably because the mingw console is GBK encoded, and wget parses the word 'mythical 'in unicode mode, eventually, wget connect does not find the corresponding file (not confirmed !). For the problem that wget does not support Chinese URLs, there are two solutions. One is to modify the source code (google only needs to modify a few lines of code ), another method is to copy the url from the url bar of the browser to gvim, and then use the converted url as the url parameter of wget, as shown below. Https://avlog.avplayer.org/%E7%A5%9E%E8%AF%9D

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.