post

get post

喜你入骨 提交于 2020-02-12 05:01:39
1. get是从服务器上获取数据,post是向服务器传送数据。 2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到这个过程。 3. 对于get方式,服务器端用Request.QueryString获取变量的值,对于post方式,服务器端用Request.Form获取提交的数据。 4. get传送的数据量较小,不能大于2KB。post传送的数据量较大,一般被默认为不受限制。但理论上,IIS4中最大量为80KB,IIS5中为100KB。 5. get安全性非常低,post安全性较高。但是执行效率却比Post方法好。 建议: 1、get方式的安全性较Post方式要差些,包含机密信息的话,建议用Post数据提交方式; 2、在做数据查询时,建议用Get方式;而在做数据添加、修改或删除时,建议用Post方式; 来源: https://www.cnblogs.com/xjt360/p/3200210.html

post和get的区别

拥有回忆 提交于 2020-02-12 04:49:00
㈠.get是从服务器上获取数据,post是向服务器传送数据。 ㈡. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,在URL中可以看到,值和表单内各个字段一一对应。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到这个过程。 ㈢. 对于get方式,服务器端用Request.QueryString获取变量的值,对于post方式,服务器端用Request.Form获取提交的数据。 ㈣. get传送的数据量较小,不能大于2KB。post传送的数据量较大,一般被默认为不受限制。但理论上,IIS4中最大量为80KB,IIS5中为100KB。 ㈤. get安全性非常低,post安全性较高。但是执行效率却比Post方法好。 注意: ①post在安全性方面比get高一些,包含重要信息的话,建议用Post数据提交方式; ②在做数据查询时,建议用Get方式;而在数据添加、修改或删除时,建议用Post方式; 来源: https://www.cnblogs.com/SissyNong/archive/2009/06/28/1512871.html

PHP模拟发送POST请求之三、用Telnet和fsockopen()模拟发送POST信息

本秂侑毒 提交于 2020-02-12 04:39:35
了解完了HTTP头信息和URL信息的具体内容,我们开始尝试自己动手写一段头信息发送到服务器。Windows内置命令Telnet可以帮助我们发送简单的HTTP请求。 并且TELNET是一个特别灵活的工具,我们还可以用它进行FTP/SMTP/POP3/TCP等方式的简单请求。 通过开始菜单--运行--CMD命令进入DOS状态, 我们输入“Telnet 主机地址 端口(Telnet 192.168.1.99 80)” 来进入telnet命令状态(完全黑窗口,此时输出字符会出问题),我们按”ctrl”+”]”,切回普通CMD窗口,再按”ENTER”回车键进入编辑命令状态。 如果系统提示找不到TELNET命令,只需按如下方式可解锁TELNET命令。 进入TELNET 命令输入模式后我们就可以直接编辑头文件来进行发送了 只需要注意:当编辑完请求头文件后要按两次回车键来发送。 这是一次标准的HTTP请求与响应,是不是跟上节的HTTP文件关联了。 当然我们不能只用这么不方便的工具,下面要介绍的是PHP里的 fsockopen() 方法。 先来看fsockopen()方法的原型: resource fsockopen ( string $hostname [, int $port = -1 [, int &$errno [, string &$errstr [, float $timeout =

使用file_get_contents提交http post

久未见 提交于 2020-02-12 04:37:43
以前使用curl获取需要登陆内容的文章,但其实,自5.0开始,使用file_get_contents就可以完成.(前提是开启了allow_url_fopen),下面以一个简单的例子说明一下: 1.先看一下目标网页(假设是http://localhost/response.php) response.php <?php echo "<pre>"; print_r($_POST); print_r($_COOKIE); ?> 本文讲述的只是http post请求的发送,所以,目标页只是回显所收到的post和cookie 2.请求页 request.php <? $data = array("name" => 'tim',"content" => 'test'); $data = http_build_query($data); $opts = array( 'http'=>array( 'method'=>"POST", 'header'=>"Content-type: application/x-www-form-urlencoded\r\n". "Content-length:".strlen($data)."\r\n" . "Cookie: foo=bar\r\n" . "\r\n", 'content' => $data, ) ); $cxContext = stream

stream_context_create解决file_get_contents超时处理

那年仲夏 提交于 2020-02-12 04:37:10
stream_context_create作用: 创建并返回一个文本数据流并应用各种选项,可用于fopen(),file_get_contents()等过程的超时设置、代理服务器、请求方式、头信息设置的特殊过程。 函数原型:resource stream_context_create ([ array $options [, array $params ]] ) 在使用file_get_contents函数的时候,经常会出现超时的情况,在这里要通过查看一下错误提示,看看是哪种错误,比较常见的是读取超时,这种情况大家可以通过一些方法来尽量的避免或者解决。这里就简单介绍两种: 一、增加超时的时间限制 这里需要注意:set_time_limit 只是设 置你的PHP程序的超时时间,而不是file_get_contents函数读取URL的超时时间。一开始以为set_time_limit也能影响到file_get_contents,后来经测试,是无效的。真正的修改file_get_contents延时可以用resource $context的timeo ut参数: $opts = array( 'http'=>array( 'method'=>"GET", 'timeout'=>60, ) ); //创建数据流上下文 $context = stream_context_create (

BugkuWeb本地包含

人走茶凉 提交于 2020-02-12 03:52:45
知识点:$_REQUEST不是一个函数,它是一个超全局变量,里面包括有$_GET $_POST $_COOKIE的值,$_REPUEST 是接收了 $_GET $_POST $_COOKIE 三个的集合 题目中的 地址已经不行了 所以这是转自https://blog.csdn.net/dyw_666666/article/details/82389457#comments,感谢分享 方法一:eval存在命令执行漏洞,使用hello构造payload http://120.24.86.145:8003/index.php?hello=1);show_source(%27flag.php%27);var_dump(3 方法二: 1.http://120.24.86.145:8003/index.php?hello=1);include $_POST['f'];// 2.在POST区域:f=php://filter/convert.base64-encode/resource=flag.php Base64解码即可。 方法三:直接将flag.php文件读入变量hello中 1.?hello=get_file_contents('flag.php') 2.?hello=file('flag.php') 来源: https://www.cnblogs.com/liqik/p/10561579

PHP: Uploading large files fail

牧云@^-^@ 提交于 2020-02-12 02:53:29
问题 Im confused... I can't seem to upload files in the 2gb range. When i try using curl to send a 1.92gb file to my site (through an API), it doesn't report anything at all, its just blank. When i send a 1kb file, it reports back like it should. When i try uploading via the upload form, it ends up freezing mid way, around 33%. Although im not sure if only the progress bar has froze or if the actual file upload it self has been suspended. I suspect that only the progress bar has froze because it

Less(13) POST - Double Injection - Single quotes- String -twist (POST单引号变形双注入)

≯℡__Kan透↙ 提交于 2020-02-11 18:48:26
1.发现没有登录成功的返回信息,看来要盲注了    2.报错型:extractvalue()   (1)爆库:uname=admin') and extractvalue(1,concat(0x7e,(select database()))) and (' &passwd=admin&submit=Submit        (2)爆表:uname=admin') and extractvalue(1,concat(0x7e,(select group_concat(table_name) from information_schema.tables where table_schema=database()))) and (' &passwd=admin&submit=Submit           (3)爆列名:uname=admin') and extractvalue(1,concat(0x7e,(select group_concat(column_name) from information_schema.columns where table_name='users'))) and (' &passwd=admin&submit=Submit          因为没有咱们需要的password,username,把一些不需要的列名消除掉:uname=admin')

2 - laravel 基础 - 路由

荒凉一梦 提交于 2020-02-11 10:25:27
laravel version: 5.5.* 路由文件: route/web.php 路由类型 get 只匹配get类型的请求 post 只匹配post类型的请求 delete 只匹配delete类型的请求 put 只匹配put类型的请求 any 匹配 get post delete put 任意一种类型的请求 基本使用 基本格式: Route::路由方式('路由', '命名空间\控制器@方法'); 在PHP中.. // 基本路由 Route::get('/', 'TestController@index'); Route::post('/store', 'TestController@store'); Route::put('/update/{id}', 'TestController@update'); Route::delete('/delete/{id}', 'TestController@destroy'); RouteW::any('/test', 'TestController@test'); // 特殊路由 Route::resource('/article', 'ArticleController'); Route::resources([ '/article' => 'ArticleController', '/comment' =>

Mayor's posters POJ - 2528 线段树区间覆盖

青春壹個敷衍的年華 提交于 2020-02-11 08:35:13
//线段树区间覆盖 #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N=100010; int flag; struct node{ int l,r; //vis 是这块区域是否完全被覆盖 bool vis; }tr[N<<2]; struct point { int id; int x; }post[N<<2]; int cmp1(point a,point b) { return a.x<b.x; } int cmp2(point a,point b) { if(a.id==b.id) return a.x<b.x; return a.id>b.id; } void pushup(int u) { tr[u].vis=tr[u<<1].vis&&tr[u<<1|1].vis; } void build(int u,int l,int r) { tr[u]={l,r,0}; if(l==r) return ; int mid=l+r>>1; build(u<<1,l,mid); build(u<<1|1,mid+1,r); } void query(int u,int l,int r) { if(tr[u].vis)