A cool, fast PC site navigation station – hundred yuan navigation

A cool, fast PC site navigation station – hundred yuan navigation

Front end and interface 4 years ago (2015-12-29) Views: 10 Comments: 0

A cool navigation page was found on a website a few days ago. The interface was beautiful and atmospheric, and the windows8 tile style was adopted. The website icons were flattened.Later found that this navigation page is open source, so I downloaded a copy, and made a slight modification and optimization on my host, named "hundred yuan navigation."After that I was proud to set "Hundred Dollar Navigation" as the homepage of all my browsers.Because I can confidently tell you that the secondary loading speed of this navigation page is absolutely faster than any navigation site (unfriendly), including mainstream Baidu search, 360 navigation.Not much to say, hundred yuan navigation website: http://wangbaiyuan.cn/daohang, welcome everyone to set it as your browser home page and put forward valuable suggestions. 0.3s fast loading experience Hundred yuan navigation speed for the first time in my 15M broadband, 360 speed browser Google kernel test speed is 851ms, secondary loading speed 260ms, and supports the second time no networking can access.The reason why the loading can be completed in less than 0.3 seconds is because all the resources in the webpage, including CSS, js, and the webpage's own html are cached locally.A second visit is equivalent to opening

New Http status code – 451

New Http status code – 451

Hundred Encyclopedias 4 years ago (2015-12-24) Views: 17 Comments: 0

December 24, according to foreign media reports, Internet Engineering Steering Committee IESG recently passed a new Internet HTTP status code - 451 (UnavailableForLegal Reasons), on behalf of legal factors, the site content has been blocked. The status code for Fahrenheit 451 451 by Ray Bradbury comes from Ray Bradbury's influential novel Fahrenheit 451 (Fahrenheit 451).As early as three years ago, Google Tim Bray proposed to the Internet Engineering Task Force (IETF) to allow developers to implement "451" HTTP status codes, but it was not officially approved until last week. He believes that it should separate the code that is not visible from web pages due to technical and non-technical reasons.Previously, many websites used the "403" HTTP status code to describe the prohibition of access due to technical reasons. The "451" will be widely implemented in the future. This error code should help users solve the confusion that they cannot visit the website. The original intention of the 451 status code is to identify which content is forbidden by law and can be used on a network device or a web server.Now, GitHub, Twitter, Facebook and Google have all started using this status code to deal with censorship requirements in various

[data] curl_setopt function related parameters

[data] curl_setopt function related parameters

Hundred Encyclopedias 4 years ago (2015-06-30) Views: 10 Comments: 0

The curl_setopt() function will set options for a CURL session.The option parameter is the setting you want, and value is the value given by this option. The values ​​of the following options will be used as long integers (specified in the option parameter): CURLOPT_INFILESIZE: When you upload a file to a remote site, this option tells PHP the size of your uploaded file. CURLOPT_VERBOSE: Set this option to a non-zero value if you want CURL to report every unexpected event. CURLOPT_HEADER: Set this option to a non-zero value if you want to include a header in the output. CURLOPT_NOPROGRESS: Set this option to a non-zero value if you don't want PHP to display a progress bar for CURL transfers. Note: PHP automatically sets this option to a non-zero value. You should change this option only for debugging purposes. CURLOPT_NOBODY: Set this option to a non-zero value if you do not want to include the body part in the output. CURLOPT_FAILONERROR: If you want PHP to fail (the HTTP code returns 300 or more), do not display it. Set this option to a non-zero value.The default behavior is to return a normal page, ignoring the code. CURLOPT_UPLOAD: Set this option to

Self-made tool class BYhttpClient based on http post

Self-made tool class BYhttpClient based on http post

Hundred Encyclopedias 5 years ago (2015-06-10) Views: 4 Comments: 0

Class BYhttpClient Introduction java.lang.Object cn.wangbaiyuan.tools.BYhttpClient Constructor Summary Constructor Constructors and instructions Method summary All MethodsInstance MethodsConcrete Methods Qualifiers and types Methods and instructions Methods inherited from class java.lang.Object Constructor details BYhttpClient parameter: Iurl - root address, your server plus your project folder address Iencode - encoding format Method details sendHttpClientPOSTRequest parameter: Path - the URL to which you requested the URL relative to the file address of the root address Params - MAP format key-value pairs Returns: the string that completes the post request and gets the server's reply Throws: Class BYhttpClient code  

[transfer]java to achieve Http-post submit data to the server

[transfer]java to achieve Http-post submit data to the server

Algorithm language 5 years ago (2015-06-08) Views: 10 Comments: 0

In conducting Android learning, the extremely guest needs to implement the function of login authentication, and it is required to implement http to submit data by post.The following is reproduced from the CSDN article content Program components: 1. The client uses the eclipse HttpUtils.java standard java interface to implement HTTP post data submission. (submit username and password in post) Focus point: 1. Public static String sendPostMessage(Map<String,String> params , String encode) Purpose: The client sends the data params to the server, finally gets the input stream returned from the server, and finally converts the input stream into a string.Note how to use the standard java interface to implement the http post request, successfully connect to the server, and get the data returned from the server-side response. 2. Public String String changInputStream(InputStream inputStream , String encode) Purpose: To convert an input stream into a string in the specified encoding.(In this case, the input stream InputStream returned from the server is converted to a string String encoding method encoding method) 3. Instantiation methods and iterative methods of Map<String ,String> Map's instantiation method: The iterative method of Map:   Program ideas: 1. The client establishes the http link httpURLConnection and uses OutputStream to send

登录

Forget password?

您也可以使用第三方帐号快捷登录

切换登录

注册

TW