• VBScript clipboard grabs URL and opens in browser


    Hello, CL. This is a very interesting question, or we should say that these are two very interesting questions. Because you actually asked two questions. The first question is simple: can I use scripts to open specific web sites? You probably already know the answer, I can answer you loudly, yes! Here is a sample […]

  • Ruby writes a script to scan all URLs of the current web page


    #scanweb.rb #Use ruby scanweb.rb www.jb51.net to save the current result in C: \ 1.txt require ‘net/http’ filename= File.new(‘c:\1.txt’,”w+”) if $*[0]==nil  Put “hehe, no URL entered”else h = Net::HTTP.new($*[0], 80) resp, data = h.get(‘/index.html’, nil) if resp.message == “OK” data.scan(/<a href=”(.*?)”/).each do |x| puts x filename.puts x end end end #Boring, there are VBS, PHP and Ruby versions. It seems that ruby is faster than VBS, which is comparable to PHP. =begin Modify it […]

  • Using VBS to get all link names and URLs in favorites


    In addition, you can consider outputting the link as a hyperlink, and changing the output file to an HTML file.GetFavorites.vbs: Copy codeThe code is as follows: ‘=================================================================== Const FAVORITES = &H6& Const ForWriting = 2 Set objShell = CreateObject(“shell.application”) Set objFolder = objShell.Namespace(FAVORITES) Set fso = CreateObject (“scripting.filesystemobject”) processGet objFolder Set objFolder = Nothing Set […]

  • IOS wkwebview cannot handle URL scheme and app store links


    Introduction to wkwebview Uiwebview comes from ios2 and wkwebview comes from ios8. There is no doubt that wkwebview will gradually replace the cumbersome uiwebview. Through a simple test, we can find that uiwebview takes up too much memory, and the memory peak is even more exaggerated. The loading speed of wkwebview web page has also […]

  • Data: the method of converting image data URL file to blob upload backend


    Some scenarios, such as the pictures obtained by canvas or the pictures returned by wechat SDK, are in data: IMG format. We need to upload them to the server, so we need to convert them. Convert dataurl to blob //Base64 to blob dataURItoBlob(dataURI) { // convert base64/URLEncoded data component to raw binary data held in […]

  • A summary of JSP’s method of dealing with Chinese garbled code in URL link


    Ie does not encode and send the parameters after the URL by default, but tomat encodes the URL according to iso8859-1 by default, so there will be an error. Method 1: Re code URL links: < a onclick = “javascript: window. Open (encodeuri (encodeuri (‘. / dispatchaction. Do? Efformename = fkry0001 & code_type = Chinese […]

  • Asp.net core uses urlfirewall to filter requests


    I. Preface Urlfirewall is an open-source and lightweight middleware for filtering HTTP requests. It can be used in webapi or gateway (such as Ocelot), written by myself, and open-source in GitHub: https://github.com/stulzq/urlfirewall (local download) 2、 Introduction to urlfirewall Urlfirewall is an HTTP request filtering middleware, which can be matched with the gateway (Ocelot) to shield […]

  • Is there a limit to the URL length?


    The reason is that the get method is passed through the URL in the legend, and the length of the URL is limited, while the post method uses the flow method, and theoretically there is no limit to the capacity that can be passed.Now let’s look at the description: “the length of URL is limited”. […]

  • PHP parsing URL to get parameters


    We can use the parse uurl and parse USTR methods of PHP to get the parameters in the URL 1: parse uurl method is a part of parsing URL and returning URL, for example: $url = ‘https://www.wj0511.com/site/index.html?page=3&per-page=10’; var_dump(parse_url($url)); The returned results are as follows: array(4) { [“scheme”]=> string(5) “https” [“host”]=> string(14) “www.wj0511.com” [“path”]=> string(16) “/site/index.html” […]

  • Absolute path URL and relative path URL and subdirectory, parent directory and root directory in HTML


    Absolute URL is used to represent all the content required for a specific file in the Internet. Each file in the Internet has a unique URL, which is the connection that needs to be entered into the address bar when searching in the web page. For example, to enter a page below Baidu, enter http://www.baidu.com. […]

  • Summary of URL knowledge


    Refer to the authoritative description on MDN: the content of HTTP request is collectively referred to as “resources”. Resources can refer to documents (HTML), pictures (jpg / jpeg / PNG, etc.), cascading style sheets (CSS), multimedia resources (MP3 / MP4). Each resource can be identified by a (URI), that is, each resource can be obtained […]

  • VBS code to get redirected URL


    The question someone asked:I wanted to get the content of aaa.com, but aaa.com jumped to bbb.com. I want to get bbb.com.I visited what he called aaa.com and found that it was an HTTP 302 redirect HTTP/1.1 302 Moved Temporarily Server: nginx/0.8.53 Date: Fri, 08 Apr 2011 15:49:25 GMT Content-Type: text/html;charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive X-Powered-By: […]