Copy Code code as follows:
Module HTTP URL that needs to be used
Current URL http://localhost:8888/select?aa=001bb=002
var http = require (' http ');
var URL = require (' URL ');
Http.createserver (function (req, res) {
var arg = Url.parse (req.url). query; Method one arg => aa=001bb=002
var arg =
The following code outputs a URL that is
Http://localhost:8080/news/HelloServlet?hello=%e5%a4%a7%e5%ae%b6%e5%a5%bdtest=%e5%a4%a7%e5%ae%b6%e5%a5%bd
HTML code
Value= "Http://localhost:8080/news/HelloServlet" var= "url"
>
Name= "Hello" value= "${hello}"
/>
Name= "Test" value= "${hello}"
/>
href= "/>"
>${hello}
,url提交汉字乱码">,
First, extract the parameters from the URL
There are the following strings:
var linkurl = ' http://localhost:8080/String/string_6.html nickname = small Xishan son age=24#id1 ';
For a real URL address, you can use JS to read the relevant information in location to obtain some information, listed below:
Copy Code code as follows:
Location.origin:http://localhost "Domain"
Location.pathname:
Whether front-end development or background design, many times developers need to get information about the current or target URLs. This existing built-in object attribute can be invoked directly (here is the reference code to get the current page)
Copy Code code as follows:
But sometimes we need to change the current URL of the parameters/parameter values, at this time what people will handle it? In general, you should make a
This article focuses on the jsurl parameter value. js obtains the parameter value in the url based on the key value and converts the url parameter to json. If you are interested, let's take a look, this article is not a good place to write. I hope to point out a lot of comments and suggestions, and paste the Code directly, example 1 shows how JS obtains the parameter values in the
Php obtains url parameters. php obtains url parameters. Php obtains url parameters. This document describes how php obtains url parameters. Share it with you for your reference. The details are as follows: php retrieves url parameters in the
URL parsing and url Decoding
Refer to blog: [basic advanced] URL explanation and URL Encoding
I. URI vs URL
URI :( Uniform Resource Identifier unified Resource Identifier ).
URL: (Uniform/Universal Resource Locator unified Resour
This article focuses on the jsurl parameter value. js obtains the parameter value in the url based on the key value and converts the url parameter to json. if you are interested, let's take a look, this article is not a good place to write. I hope to point out a lot of comments and suggestions, and paste the code directly, example 1 shows how JS obtains the parameter values in the
Solution to Chinese garbled characters in URL addresses: url Chinese
Solution to Chinese garbled characters in URL addresses
Introduction: In Restful service design, users often encounter the need to use Chinese as a parameter in the URL address. In this case, generally, you must correctly set and encode Chinese charac
No nonsense, directly affixed to the code, through the example of a description of JS according to the key value of the URL to get the parameter value and the URL of the parameters to convert to JSON object, example two to get URL pass parameters, specific content please see below
Example one:
Converts the parameter portion of a
Yesterday we handled the 500 error in Google Webmaster and handled some 400 processing today, such as the following URL at the End of tab (tab):http://www.cnblogs.com/me-sa/archive/2008/05/16/1200329.html%09http://www.cnblogs.com/JimmyZhang/archive/ 2007/12/20/1006555.html%09 ...When these URLs are accessed, IIS returns the error of the "Bad Request":
Bad
request-invalid URL
HTTP Error
Set current page full address is: Http://www.jb51.net/aaa/bbb.aspx?id=5name=kelli"/HTTP" is the protocol name"Www.jb51.net" is the domain name"AAA" is the station name."Bbb.aspx" is the page name (file name)"Id=5name=kelli" is a parameter"1" gets the full URL (protocol name + domain + site name + file name + parameter)string url=Request.Url.ToString (); URL= http
Get some information about the current page address with ASP.Set current page full address is: Http://www.jb51.net/aaa/bbb.aspx?id=5name=kelli"/HTTP" is the protocol name"Www.jb51.net" is the domain name"AAA" is the station name."Bbb.aspx" is the page name (file name)"Id=5name=kelli" is a parameter"1" gets the full URL (protocol name + domain + site name + file name + parameter)The code is as follows:String url
Detailed description of Servlet and filter URL matching and URL-Pattern
Servlet and filter are common technologies used in J2EE development. They are easy to use and easy to configure. It is estimated that most of my friends are directly configured and used without having to worry about specific details. I encountered a problem today and found out only when I checked servlet specifications online, the
PHP get URL parameter method summary, PHP get URL parameter
The example in this article describes how PHP gets URL parameters. Share to everyone for your reference. Specific as follows:
In PHP, there are many ways to get the parameters in the URL, the simplest of which is to use the Parse_url function directly, he can
Solution to Chinese garbled characters in URL addresses, Chinese garbled characters in url addresses
Introduction: In Restful service design, users often encounter the need to use Chinese as a parameter in the URL address. In this case, generally, you must correctly set and encode Chinese character information. The garbled problem arises. How can this problem be
This article describes how to add a tag for a url address in php. for details, refer to the following content:
The code is as follows:Http://baidu.com this is the first A tag,Growth footprint-focusing on Internet development is the second A tag.Http://www.bitsCN.com this is the first URL to be extracted,Http://blog.baidu.com this is the second URL address to be
Seo tutorial url and url standard writingI believe the first response to most people is that the url should be static, at least pseudo-static. This operation is indeed a favorite of search engines. So I would like to ask, who was the first to propose it? Is it Baidu? I would like to give you a one-year question to illustrate the real reason for static URLs.In fac
Restrictions on the URL Length in HTTP (data sorting) and url LengthURL length limit in HTTP
First, the url Length in http 1.1 is not restricted:
The HTTP protocol does not place any a priori limit on the length of a URI. servers MUST be able to handle the URI of any resource they serve, and shocould be able to handle URIs of unbounded length if they provide GET-
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.