In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Curl is a file transfer tool that works on the command line based on URL syntax. It supports protocols such as FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FILE and LDAP.
Curl supports HTTPS authentication, and supports HTTP's POST, PUT and other methods, FTP upload, kerberos authentication, HTTP upload, proxy server, cookies, user name / password authentication, download file breakpoint resume, upload file breakpoint resume, http proxy server pipeline (proxy tunneling), and even it also supports IPv6, socks5 proxy server, upload files to FTP server through http proxy server, etc., very powerful.
# common options for curl:-A/--user-agent sets user agent to send to server-basic uses HTTP basic authentication-tcp-nodelay uses TCP_NODELAY option-e/--referer source URL-cacert CA certificate (SSL)-compressed requires that the return is in a compressed format-H/--header custom header information is passed to Server-I/--head displays only the first part of the response message-limit-rate sets the transfer speed-u/--user sets the server's user and password-0/--http1.0 uses HTTP 1.0
# use mod_deflate module to compress pages to optimize transmission speed [root@bogon ~] # curl-I 192.168.1.33:80HTTP/1.1 403 ForbiddenDate: Mon, 10 Jul 2017 00:46:21 GMTServer: Apache/2.2.15 (CentOS) Accept-Ranges: bytesContent-Length: 4954 # text size: 4954 Connection: closeContent-Type: text/html Charset=UTF-8 # text/html format # / etc/httpd/conf/httpd.conft add deflate compression module SetOutputFilter DEFLATE # mod_deflate configuration # Restrict compression to these MIME types AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE text/xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/css # Level of compression (Highest 9-Lowest 1) DeflateCompressionLevel 9 # Netscape 4.x has some problems. BrowserMatch ^ Mozilla/4 gzip-only-text/html # Netscape 4.06-4.08 have some more problems BrowserMatch ^ Mozilla/4\ .0 [678] no-gzip # MSIE masquerades as Netscape, but it is fine BrowserMatch\ bMSI [E]! no-gzip! gzip-only-text/html [root@bogon ~] # service httpd reload # restart httpd Service Reloading httpd: [root@bogon ~] # curl-I-compressed 192.168.1.33:80HTTP/1.1 403 ForbiddenDate: Mon 10 Jul 2017 00:46:59 GMTServer: Apache/2.2.15 (CentOS) Accept-Ranges: bytesVary: Accept-EncodingContent-Encoding: gzip # gzip format Content-Length: 1991 # document size: 1991Connection: closeContent-Type: text/html Charset=UTF-8
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.