• Asks to get the thing (resource / file) at the requested URL. POST 请求服务器接收body信息，并将body信息发送给请求中指明文件 Asks the server to accept the body info attached to the request, and ...
GET
请求URL中指明的资源或文件
Asks to get the thing (resource / file) at the requested URL. POST
请求服务器接收body信息，并将body信息发送给请求中指明的文件
Asks the server to accept the body info attached to the request, and give it to the thing at the requested URL It’s like a fat GET… a GET with extra info sent with the request. 两者区别
1. 最关键的区别：POST有body。POST和GET都可以传递参数，但是用GET，传递的数据是有限制的，并且传递的参数直接附在Request line。

安全性。GET请求的参数会直接在浏览器输入栏中展示（在URL后用?分隔），如果涉及到密码的请求，你一定不希望其他看到。
添加收藏夹。你可能希望用户收藏这个请求页，GET可以收藏，但POST不能。
使用方式。GET用于请求信息（如简单的搜索），它不会改变服务器上的信息。POST用于发送数据，它既可以请求信息，也可以去更新服务器上的信息。

展开全文
• <p>I can use GET to send and get data from the server using this VBScript example: <pre><code>Send "https://www.server.com/send.php" Sub Send(url) Dim objHTTP, MyResponse Set objHTTP = CreateObject...
• SNMPv2 defines the get-bulk operation, which allows a management application to retrieve a large section of a table at once. The standard get operation can attempt to retrieve more than one MIB object...
SNMPv2 defines the get-bulk operation, which allows a management application to retrieve a large section of a table at once. The standard get operation can attempt to retrieve more than one MIB object at once, but message sizes are limited by the agent's capabilities. If the agent can't return all the requested responses, it returns an error message with no data. The get-bulk operation, on the other hand, tells the agent to send as much of the response back as it can. This means that incomplete responses are possible. Two fields must be set when issuing a get-bulk command: nonrepeaters and max-repetitions. Nonrepeaters tells the get-bulk command that the first N objects can be retrieved with a simple get-next operation. Max-repetitions tells the get-bulk command to attempt up to Mget-next operations to retrieve the remaining objects.Assume we're requesting three bindings: sysDescr, ifInOctets, and ifOutOctets. The total number of variable bindings that we've requested is given by the formula N + (M * R), where N is the number of nonrepeaters (i.e., scalar objects in the request -- in this case 1, because sysDescr is the only scalar object), M is max-repetitions (in this case, we've set it arbitrarily to 3), and R is the number of nonscalar objects in the request (in this case 2, because ifInOctets and ifOutOctets are both nonscalar). Plugging in the numbers from this example, we get 1 + (3 * 2) = 7, which is the total number of variable bindings that can be returned by this get-bulk request.The Net-SNMP package comes with a command for issuing get-bulk queries. If we execute this command using all the parameters previously discussed, it will look like the following:$snmpbulkget -v2c -B 1 3 linux.ora.com public sysDescr ifInOctets ifOutOctetssystem.sysDescr.0 = "Linux linux 2.2.5-15 #3 Thu May 27 19:33:18 EDT 1999 i686"interfaces.ifTable.ifEntry.ifInOctets.1 = 70840interfaces.ifTable.ifEntry.ifOutOctets.1 = 70840interfaces.ifTable.ifEntry.ifInOctets.2 = 143548020interfaces.ifTable.ifEntry.ifOutOctets.2 = 111725152interfaces.ifTable.ifEntry.ifInOctets.3 = 0interfaces.ifTable.ifEntry.ifOutOctets.3 = 0Since get-bulk is an SNMPv2 command, you have to tell snmpgetbulk to use an SNMPv2 PDU with the -v2c option. The nonrepeaters and max-repetitions are set with the -B 1 3 option. This sets nonrepeaters to 1 and max-repetitions to 3. Notice that the command returned seven variable bindings: one for sysDescr and three each for ifInOctets and ifOutOctets.Non-repeaters and maxRepetitionsThey are used in getBulk.Definition of Non-repeaters:- The Non-repeater specifies the number of variables in the variable-bindings list for which a single OID (lexicographic successor) is to be returned.Definition of maxRepetitions :- The max-repetitions specifies the number of OIDs (lexicographic successor)to be returned for the remaining variables (total variables - nonrepeaters)in the variable bindings list.For clearer understanding, Let us assume Nonrepeater=4, and Max-Repetitions=3;If get values with OID lists which are .1.3.6.1.2.1.11.1.0, .1.3.6.1.2.1.11.2.0 , .1.3.6.1.2.1.11.3.0, .1.3.6.1.2.1.11.4.0, .1.3.6.1.2.1.11.5.0, .1.3.6.1.2.1.11.6.0 , and the method is getNext.NonRepeater value is 4. So the first four variable returns a single lexicographic successor.Request OIDs ----> Response.1.3.6.1.2.1.11.1.0 ---> .1.3.6.1.2.1.11.2.0 and its value.1.3.6.1.2.1.11.2.0 ---> .1.3.6.1.2.1.11.3.0 and its value1.3.6.1.2.1.11.3.0 ---> .1.3.6.1.2.1.11.4.0 and its value.1.3.6.1.2.1.11.4.0 ---> .1.3.6.1.2.1.11.5.0 and its valueThe subsequent OIDs in the OIDs list to be returned the number of max-repetitions lexicographic successor.Request ---> Response.1.3.6.1.2.1.11.5.0 --> .1.3.6.1.2.1.11.6.0, .1.3.6.1.2.1.11.7.0, .1.3.6.1.2.1.11.8.0 and its value.Request ---> Response.1.3.6.1.2.1.11.6.0 --> .1.3.6.1.2.1.11.7.0, .1.3.6.1.2.1.11.8.0 , .1.3.6.1.2.1.11.9.0 and its value.So the response will be,.1.3.6.1.2.1.11.2.0 and its value.1.3.6.1.2.1.11.3.0 and its value.1.3.6.1.2.1.11.4.0 and its value.1.3.6.1.2.1.11.5.0 and its value.1.3.6.1.2.1.11.6.0 and its value.1.3.6.1.2.1.11.7.0 and its value.1.3.6.1.2.1.11.7.0 and its value.1.3.6.1.2.1.11.8.0 and its value.1.3.6.1.2.1.11.8.0 and its value.1.3.6.1.2.1.11.9.0 and its value 展开全文 • GET is a simple request, POST can send user dataGET is the simplest HTTP method, and its main job in life is to ask the server to get a resource and send it back. That resource might be an HTML page, ...  GET is meant to be used for getting things. Period, you might use the parameters to help figure out what to send back, but the point is—you’re not making any changes on the server! POST is meant to be used for sending data to be processed. This could be as simple as query parameters used to figure out what to send back, just as with a GET, but when you think of POST, think: update. Think: use the data from the POST body to change something on the server 1.With GET, the parameter data is limited to what you can stuff into the Request line 2.When you use GET, the parameter data shows up in the browser’s input bar，they are visible。 3.GET requests can be bookmarked; POST requests cannot. 4.The HTTP 1.1 spec declares GET, HEAD, and PUT as idempotent, even though you CAN write a non-idemtotent doGet() method yourself (but shouldn’t). POST is not considered idempotent by the HTTP 1.1 spec. GET is the simplest HTTP method, and its main job in life is to ask the server to get a resource and send it back. That resource might be an HTML page, a JPEG, a PDF, etc. Doesn’t matter. The point of GET is to get something back from the server. POST is a more powerful request. It’s like a GET plus plus. With POST, you can request something and at the same time send form data to the server (later in this chapter we’ll see what the server might do with that data).  展开全文 • SNMPv2 defines the get-bulk operation, which allows a management application to retrieve a large section of a table at once. The standard get operation can attempt to retrievemore than one MIB object ... SNMPv2 defines the get-bulk operation, which allows a management application to retrieve a large section of a table at once. The standard get operation can attempt to retrievemore than one MIB object at once, but message sizes are limited by the agent's capabilities. If the agent can't return all the requested responses, it returns an error message with no data. The get-bulk operation, on the other hand, tells the agent to sendas much of the response back as it can. This means that incomplete responses are possible. Two fields must be set when issuing a get-bulk command: nonrepeaters and max-repetitions. Nonrepeaters tells the get-bulk command that the first N objects can be retrievedwith a simple get-next operation. Max-repetitions tells the get-bulk command to attempt up to Mget-next operations to retrieve the remaining objects.Assume we're requesting three bindings: sysDescr, ifInOctets, and ifOutOctets. The total number of variable bindings that we've requested is given by the formula N + (M* R), where N is the number of nonrepeaters (i.e., scalar objects in the request -- in this case 1, because sysDescr is the only scalar object), M is max-repetitions (in this case, we've set it arbitrarily to 3), and R is the number of nonscalar objects inthe request (in this case 2, because ifInOctets and ifOutOctets are both nonscalar). Plugging in the numbers from this example, we get 1 + (3 * 2) = 7, which is the total number of variable bindings that can be returned by this get-bulk request.The Net-SNMP package comes with a command for issuing get-bulk queries. If we execute this command using all the parameters previously discussed, it will look like thefollowing:$ snmpbulkget -v2c -B 1 3 linux.ora.com public sysDescr ifInOctets ifOutOctetssystem.sysDescr.0 = "Linux linux 2.2.5-15 #3 Thu May 27 19:33:18 EDT 1999 i686"interfaces.ifTable.ifEntry.ifInOctets.1 = 70840interfaces.ifTable.ifEntry.ifOutOctets.1 = 70840interfaces.ifTable.ifEntry.ifInOctets.2 = 143548020interfaces.ifTable.ifEntry.ifOutOctets.2 = 111725152interfaces.ifTable.ifEntry.ifInOctets.3 = 0interfaces.ifTable.ifEntry.ifOutOctets.3 = 0Since get-bulk is an SNMPv2 command, you have to tell snmpgetbulk to use an SNMPv2 PDU with the -v2c option. The nonrepeaters and max-repetitions are set with the -B 13 option. This sets nonrepeaters to 1 and max-repetitions to 3. Notice that the command returned seven variable bindings: one for sysDescr and three each for ifInOctets and ifOutOctets.Non-repeaters and maxRepetitionsThey are used in getBulk.Definition of Non-repeaters:- The Non-repeater specifies the number of variables in the variable-bindings list for which a single OID (lexicographic successor) is to bereturned.Definition of maxRepetitions :- The max-repetitions specifies the number of OIDs (lexicographic successor)to be returned for the remaining variables (total variables -nonrepeaters)in the variable bindings list.For clearer understanding, Let us assume Nonrepeater=4, and Max-Repetitions=3;If get values with OID lists which are .1.3.6.1.2.1.11.1.0, .1.3.6.1.2.1.11.2.0 , .1.3.6.1.2.1.11.3.0, .1.3.6.1.2.1.11.4.0, .1.3.6.1.2.1.11.5.0, .1.3.6.1.2.1.11.6.0 , andthe method is getNext.NonRepeater value is 4. So the first four variable returns a single lexicographic successor.Request OIDs ----> Response.1.3.6.1.2.1.11.1.0 ---> .1.3.6.1.2.1.11.2.0 and its value.1.3.6.1.2.1.11.2.0 ---> .1.3.6.1.2.1.11.3.0 and its value1.3.6.1.2.1.11.3.0 ---> .1.3.6.1.2.1.11.4.0 and its value.1.3.6.1.2.1.11.4.0 ---> .1.3.6.1.2.1.11.5.0 and its valueThe subsequent OIDs in the OIDs list to be returned the number of max-repetitions lexicographic successor.Request ---> Response.1.3.6.1.2.1.11.5.0 --> .1.3.6.1.2.1.11.6.0, .1.3.6.1.2.1.11.7.0, .1.3.6.1.2.1.11.8.0 and its value.Request ---> Response.1.3.6.1.2.1.11.6.0 --> .1.3.6.1.2.1.11.7.0, .1.3.6.1.2.1.11.8.0 , .1.3.6.1.2.1.11.9.0 and its value.So the response will be,.1.3.6.1.2.1.11.2.0 and its value.1.3.6.1.2.1.11.3.0 and its value.1.3.6.1.2.1.11.4.0 and its value.1.3.6.1.2.1.11.5.0 and its value.1.3.6.1.2.1.11.6.0 and its value.1.3.6.1.2.1.11.7.0 and its value.1.3.6.1.2.1.11.7.0 and its value.1.3.6.1.2.1.11.8.0 and its value.1.3.6.1.2.1.11.8.0 and its value.1.3.6.1.2.1.11.9.0 and its value
展开全文
• GET is a simple request,  POST can send user data --get是一个简单请求 --post 能够发送用户数据 GET is the simplest ...main job in life is to ask the server to get a  resource and send it
• update update is used to resynchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /e...
• copy_to_user -- Copy a block of data into user space.  copy_from_user -- Copy a block of data from user space. get_user -- Get a simple variable from user space.  put_user -- Write a simple ...
• join方法 /** * Returns the result value when complete, or throws an * (unchecked) exception if completed exceptionally. To better * conform with the use of common functional forms, if a ...
• 2005年Jesse James Garrett发表了一篇文章，标题为：“Ajax：A new Approach to Web Applications”。他在这篇文章里介绍了一种技术，用他话说，就叫：Ajax，是Asynchronous JavaScript + XML简写。这种技术能够...
• apt是 Advanced Packaging Tool 缩写参考资料：http://www.debian.org/doc/manuals/apt-howto/ch1.zh-cn.html入门linux同志，刚开始最迫切想知道，大概一个是中文输入法，另一个就是怎么安装软件。本文主要讲...
• 最近用一个实际web项目在学习Webdriver，关于新建一个备份任务过程，先是有一个父页上button弹开一个子页，总共有4个子页，必须前一个页上必填信息录完，才能在这个页面触发下一个子页。   如果在baseUrl1第...
• apt-get install E: Unable to correct problems, you have held broken packages 解决办法是不使用apt-get安装库，而是使用aptitude aptitude 与 apt-get 一样，是 Debian 及其衍生系统中功能极其强大包管理工具...
• 另一个区别在于，一个在('...请查看源代码 ：def _get_default_variable_store():store = ops.get_collection(_VARSTORE_KEY)if store:return store[0]store = _VariableStore()ops.add_to_collection(_VARST...
• 用driver.navigate().to(baseUrl2)，直接跳转到第2个页，不受第一个子页约束，直接导航到第2个页面输入。 driver.get(driver.getCurrentUrl())，这样通过实际页面逻辑来获取URL结果，原理是当页面校验在
• 这里用到了driver.navigate().to()方法，特此mark下。下面是查询资料收获： 最近用一个实际web项目在学习Webdriver，关于新建一个备份任务过程，先是有一个父页上button弹开一个子页，总共有4个子页，...
• 1、显示、隐藏 ... fadeTo() 3、滑动 slideDown() slideUp() slideToggle() 4、动画 animate() 5、获取内容 text() - 设置或返回所选元素文本内容 html() - 设置或返回所选元素内容（包括 HTML 标...
• 每次读取一个字符，直到遇到EOF输入循环基本设计如下： cin.get(ch); //attempt to read a char while(cin.fail()==false) //test for EOF { .........  cin.get(ch); //attempt to read another char ...
• Question: I would like to save a picture in Internal Storage of my app, to make it ... So I did a little research and saw 2 ways to get the directory. 1.With getDir : File dir = getDir(Enviro...
• 这里用到了driver.navigate().to()方法，特此mark下。下面是查询资料收获：     最近用一个实际web项目在学习Webdriver，关于新建一个备份任务过程，先是有一个父页上button弹开一个子页，总共有4...
• 一 ，kmalloc() 与 kfree() 和get_free_page的区别 1,用于申请较小的、连续的物理内存：使用的是内存分配器slab一小片。申请的内存位于物理内存的映射区域。其正真的物理地址只相差一个固定的偏移。  可以用这...
• 这是博主面向腾讯学习面试题大整理系列，可以在如下github...【亡羊补牢】计算机网络灵魂之问 第1期 一道百度笔试题引发血案 （有了IP地址子网掩码，广播地址还求不出来？） 【亡羊补牢】计算机网络灵魂之问 第
• 表单form的提交有两种方式，一种是get的...看下面代码,理解ASP.NET Get和Post两种提交的区别: 代码 view plaincopy to clipboardprint?< form id="form1" method="get" runat="server"> < div> ...
• 1. be seen doingbe seen to do的区别 be seen doing表被看到正在做某事；be seen to do 表被看到做某事（不表进行） He was seen to read a book He was seen reading a book 2. get busy with get busy with ...
• <p>What is the difference between calling <code>get_called_class()</code> and <code>static::...<p>It appears to work the same in both cases but there may be some nuances I should be aware of. </div>
• <p>According to Joomlas' documentation <code>getVar</code> , "Fetches and returns a given variable." If that is the case why would the following code return different results? <pre><code>echo ...